@hyperline/cli 0.1.0-build.1.335e98c → 0.1.0-build.1.34b338e
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 +39 -35
- package/dist/external-deps.json +0 -1
- package/package.json +1 -2
|
@@ -38323,24 +38323,6 @@ Examples:
|
|
|
38323
38323
|
queryParamKeys: ["invoicing_entity_id"]
|
|
38324
38324
|
});
|
|
38325
38325
|
});
|
|
38326
|
-
resource.command("get-ledger-client-provider").description(`Retrieve the redacted accounting provider connected to a ledger.`).requiredOption("--id <value>", `id parameter`).addHelpText("after", `
|
|
38327
|
-
Examples:
|
|
38328
|
-
hyperline accounting-ledgers get-ledger-client-provider --id <id>`).action(async (opts) => {
|
|
38329
|
-
const ctx = resource.parent?.opts()._ctx;
|
|
38330
|
-
if (!ctx) {
|
|
38331
|
-
process.stderr.write("Error: Not authenticated\n");
|
|
38332
|
-
process.exit(1);
|
|
38333
|
-
}
|
|
38334
|
-
const args = {};
|
|
38335
|
-
if (opts.id !== void 0)
|
|
38336
|
-
args.id = opts.id;
|
|
38337
|
-
await ctx.execute({
|
|
38338
|
-
method: "GET",
|
|
38339
|
-
path: "/v1/accounting/ledgers/{id}/client-provider",
|
|
38340
|
-
args,
|
|
38341
|
-
queryParamKeys: []
|
|
38342
|
-
});
|
|
38343
|
-
});
|
|
38344
38326
|
resource.command("create-ledger").description(`Create an accounting ledger for an invoicing entity.`).requiredOption("--invoicing-entity-id <value>", `Identifier of the invoicing entity that owns the ledger.`).requiredOption("--name <value>", `Display name of the ledger.`).requiredOption("--code <value>", `Optional accounting code of the ledger.`).requiredOption("--description <value>", `Optional description of the ledger.`).requiredOption("--type <value>", `Type of ledger.`).requiredOption("--currency <value>", `ISO 4217 currency used by the ledger.`).requiredOption("--entry-number-pattern <value>", `Entry numbering pattern containing \`{number}\`.`).requiredOption("--is-primary", `Whether this is the primary ledger for the invoicing entity.`).requiredOption("--is-inactive", `Whether the ledger is inactive.`).addHelpText("after", `
|
|
38345
38327
|
Examples:
|
|
38346
38328
|
hyperline accounting-ledgers create-ledger --invoicing-entity-id <invoicing_entity_id> --name <name> --code <code> --description <description> --type <type> --currency <currency> --entry-number-pattern <entry_number_pattern> --is-primary --is-inactive
|
|
@@ -41130,7 +41112,7 @@ Examples:
|
|
|
41130
41112
|
]
|
|
41131
41113
|
});
|
|
41132
41114
|
});
|
|
41133
|
-
resource.command("create").description(`Upload a new file (max 10MB). Requires multipart form data with a file field and metadata (name
|
|
41115
|
+
resource.command("create").description(`Upload a new file (max 10MB). Requires multipart form data with a file field and metadata (name and customer_id).`).requiredOption("--name <value>", `Name of the file to be uploaded.`).requiredOption("--customer-id <value>", `ID of the customer to link the file to.`).addHelpText("after", `
|
|
41134
41116
|
Examples:
|
|
41135
41117
|
hyperline files create --name <name> --customer-id <customer_id>
|
|
41136
41118
|
hyperline files create --name <name> --customer-id <customer_id> --output json`).action(async (opts) => {
|
|
@@ -41670,7 +41652,7 @@ Examples:
|
|
|
41670
41652
|
queryParamKeys: []
|
|
41671
41653
|
});
|
|
41672
41654
|
});
|
|
41673
|
-
resource.command("validate").description(`
|
|
41655
|
+
resource.command("validate").description(`Submit a draft invoice for finalization. The result may be pending approval or finalized for payment.`).requiredOption("--id <value>", `id parameter`).addHelpText("after", `
|
|
41674
41656
|
Examples:
|
|
41675
41657
|
hyperline invoices validate --id <id>
|
|
41676
41658
|
hyperline invoices validate --id <id> --output json`).action(async (opts) => {
|
|
@@ -41689,10 +41671,10 @@ Examples:
|
|
|
41689
41671
|
queryParamKeys: []
|
|
41690
41672
|
});
|
|
41691
41673
|
});
|
|
41692
|
-
resource.command("charge").description(`Manually trigger payment collection for an invoice. Optionally specify a payment_method_id to charge.`).requiredOption("--id <value>", `id parameter`).option("--payment-method-id <value>", `Payment method used to execute the payment. This payment method will override any previously set method on the invoice.`).addHelpText("after", `
|
|
41674
|
+
resource.command("charge").description(`Manually trigger payment collection for an invoice. Optionally specify a payment_method_id and an amount to charge now.`).requiredOption("--id <value>", `id parameter`).option("--payment-method-id <value>", `Payment method used to execute the payment. This payment method will override any previously set method on the invoice.`).option("--amount <number>", `Amount to charge now, expressed in the currency's smallest unit. Defaults to the outstanding invoice amount.`).addHelpText("after", `
|
|
41693
41675
|
Examples:
|
|
41694
41676
|
hyperline invoices charge --id <id>
|
|
41695
|
-
hyperline invoices charge --id <id> --payment-method-id <payment_method_id>
|
|
41677
|
+
hyperline invoices charge --id <id> --payment-method-id <payment_method_id> --amount <amount>
|
|
41696
41678
|
hyperline invoices charge --id <id> --output json`).action(async (opts) => {
|
|
41697
41679
|
const ctx = resource.parent?.opts()._ctx;
|
|
41698
41680
|
if (!ctx) {
|
|
@@ -41704,6 +41686,8 @@ Examples:
|
|
|
41704
41686
|
args.id = opts.id;
|
|
41705
41687
|
if (opts.paymentMethodId !== void 0)
|
|
41706
41688
|
args.payment_method_id = opts.paymentMethodId;
|
|
41689
|
+
if (opts.amount !== void 0)
|
|
41690
|
+
args.amount = Number(opts.amount);
|
|
41707
41691
|
await ctx.execute({
|
|
41708
41692
|
method: "POST",
|
|
41709
41693
|
path: "/v1/invoices/{id}/charge",
|
|
@@ -42016,7 +42000,7 @@ Examples:
|
|
|
42016
42000
|
queryParamKeys: []
|
|
42017
42001
|
});
|
|
42018
42002
|
});
|
|
42019
|
-
resource.command("create-invoicing-entity").description(`Create a new invoicing entity with company details, address, and tax configuration. Used as the sender on invoices.`).option("--is-default", `Flag to indicate if this is the default invoicing entity. If true, it will switch the other existing invoicing entities to non-default.`).requiredOption("--name <value>", `The name of the invoicing entity.`).option("--trade-name <value>", `The trade name of the invoicing entity.`).option("--timezone <value>", `The timezone the invoicing entity operates in.`).option("--language <value>", `The default language of the invoicing entity.`).option("--registration-number <value>", `The registration number of the invoicing entity.`).option("--tax-id <value>", `The tax identification number of the invoicing entity.`).option("--billing-email <value>", `The billing email address for the invoicing entity.`).option("--address-line1 <value>", `The first line of the address for the invoicing entity.`).option("--address-line2 <value>", `The second line of the address for the invoicing entity.`).option("--zip-code <value>", `The postal code for the invoicing entity's address.`).option("--state <value>", `The state or province of the invoicing entity.`).option("--city <value>", `The city of the invoicing entity.`).requiredOption("--country <value>", `The country in which the invoicing entity is registered.`).requiredOption("--currency <value>", `The currency code that the invoicing entity operates in.`).requiredOption("--accounting-currency <value>", `The currency used for accounting purposes.`).option("--invoice-number-pattern <value>", `The pattern used for generating invoice numbers. Available dynamic elements: number {number} (mandatory), year {YYYY}, month {MM} and day {DD}.`).option("--credit-note-number-pattern <value>", `The pattern used for generating credit note numbers. Available dynamic elements: number {number} (mandatory), year {YYYY}, month {MM} and day {DD}.`).option("--document-number-pattern <value>", `The pattern used for generating document numbers. Available dynamic elements: number {number} (mandatory), year {YYYY}, month {MM} and day {DD}.`).option("--next-invoice-number <number>", `The next invoice number to be used.`).option("--next-credit-note-number <number>", `The next credit note number to be used.`).option("--next-document-number <number>", `The next document number to be used.`).option("--default-payment-delay <number>", `The default payment term in days.`).option("--invoice-grace-period-duration <number>", `The grace period duration in days.`).option("--invoice-payment-initiation-delay <number>", `The payment initiation delay in days for the invoices.`).option("--document-payment-initiation-delay <number>", `The payment initiation delay in days for the custom documents.`).option("--invoice-late-fees <value>", `The late fees applicable to the invoices.`).option("--invoice-footer <value>", `The footer text to be used in invoices.`).option("--document-footer <value>", `The footer text to be used in documents. If not specified, the invoice footer will be used.`).option("--quote-footer <value>", `The footer text to be used in quotes.`).option("--logo-url <value>", `URL of the logo to be used in invoices.`).option("--favicon-url <value>", `URL of the logo to be used as favicon.`).option("--brand-color <value>", `Brand color to be used in invoices (hexadecimal color code).`).option("--forced-customer-type <value>", `Forces all customers created under this invoicing entity to have this type. Set to null to allow users to choose.`).option("--credit-note-wallet-refund-enabled", `When enabled, credit note refunds default to the customer's wallet
|
|
42003
|
+
resource.command("create-invoicing-entity").description(`Create a new invoicing entity with company details, address, and tax configuration. Used as the sender on invoices.`).option("--is-default", `Flag to indicate if this is the default invoicing entity. If true, it will switch the other existing invoicing entities to non-default.`).requiredOption("--name <value>", `The name of the invoicing entity.`).option("--trade-name <value>", `The trade name of the invoicing entity.`).option("--timezone <value>", `The timezone the invoicing entity operates in.`).option("--language <value>", `The default language of the invoicing entity.`).option("--registration-number <value>", `The registration number of the invoicing entity.`).option("--tax-id <value>", `The tax identification number of the invoicing entity.`).option("--billing-email <value>", `The billing email address for the invoicing entity.`).option("--address-line1 <value>", `The first line of the address for the invoicing entity.`).option("--address-line2 <value>", `The second line of the address for the invoicing entity.`).option("--zip-code <value>", `The postal code for the invoicing entity's address.`).option("--state <value>", `The state or province of the invoicing entity.`).option("--city <value>", `The city of the invoicing entity.`).requiredOption("--country <value>", `The country in which the invoicing entity is registered. It cannot be changed after creation.`).requiredOption("--currency <value>", `The currency code that the invoicing entity operates in.`).requiredOption("--accounting-currency <value>", `The currency used for accounting purposes.`).option("--invoice-number-pattern <value>", `The pattern used for generating invoice numbers. Available dynamic elements: number {number} (mandatory), year {YYYY}, month {MM} and day {DD}.`).option("--credit-note-number-pattern <value>", `The pattern used for generating credit note numbers. Available dynamic elements: number {number} (mandatory), year {YYYY}, month {MM} and day {DD}.`).option("--document-number-pattern <value>", `The pattern used for generating document numbers. Available dynamic elements: number {number} (mandatory), year {YYYY}, month {MM} and day {DD}.`).option("--next-invoice-number <number>", `The next invoice number to be used.`).option("--next-credit-note-number <number>", `The next credit note number to be used.`).option("--next-document-number <number>", `The next document number to be used.`).option("--default-payment-delay <number>", `The default payment term in days.`).option("--invoice-grace-period-duration <number>", `The grace period duration in days.`).option("--invoice-payment-initiation-delay <number>", `The payment initiation delay in days for the invoices.`).option("--document-payment-initiation-delay <number>", `The payment initiation delay in days for the custom documents.`).option("--invoice-late-fees <value>", `The late fees applicable to the invoices.`).option("--invoice-footer <value>", `The footer text to be used in invoices.`).option("--document-footer <value>", `The footer text to be used in documents. If not specified, the invoice footer will be used.`).option("--quote-footer <value>", `The footer text to be used in quotes.`).option("--logo-url <value>", `URL of the logo to be used in invoices.`).option("--favicon-url <value>", `URL of the logo to be used as favicon.`).option("--brand-color <value>", `Brand color to be used in invoices (hexadecimal color code).`).option("--forced-customer-type <value>", `Forces all customers created under this invoicing entity to have this type. Set to null to allow users to choose.`).option("--credit-note-wallet-refund-enabled", `When enabled and no \`refund_method\` is specified, credit note refunds default to the customer's wallet, including credit notes generated by subscription updates, cancellations, and transitions. An explicit \`refund_method\` always wins. Requires wallets to be enabled at the workspace level.`).option("--standalone-credit-note-creation-enabled", `Whether credit notes without an original invoice can be created under this invoicing entity.`).addHelpText("after", `
|
|
42020
42004
|
Examples:
|
|
42021
42005
|
hyperline invoicing-entities create-invoicing-entity --name <name> --country <country> --currency <currency> --accounting-currency <accounting_currency>
|
|
42022
42006
|
hyperline invoicing-entities create-invoicing-entity --name <name> --country <country> --currency <currency> --accounting-currency <accounting_currency> --is-default --trade-name <trade_name>
|
|
@@ -42106,7 +42090,7 @@ Examples:
|
|
|
42106
42090
|
queryParamKeys: []
|
|
42107
42091
|
});
|
|
42108
42092
|
});
|
|
42109
|
-
resource.command("update-invoicing-entity").description(`Update an existing invoicing entity's details (address, tax ID, branding, etc.).`).requiredOption("--id <value>", `id parameter`).option("--name <value>", `The name of the invoicing entity.`).option("--registration-number <value>", `The registration number of the invoicing entity.`).option("--tax-id <value>", `The tax identification number of the invoicing entity.`).option("--billing-email <value>", `The billing email address for the invoicing entity.`).option("--timezone <value>", `The timezone the invoicing entity operates in.`).option("--language <value>", `The default language of the invoicing entity.`).option("--is-default", `Flag to indicate if this is the default invoicing entity. If true, it will switch the other existing invoicing entities to non-default.`).option("--address-line1 <value>", `The first line of the address for the invoicing entity.`).option("--address-line2 <value>", `The second line of the address for the invoicing entity.`).option("--zip-code <value>", `The postal code for the invoicing entity's address.`).option("--state <value>", `The state or province of the invoicing entity.`).option("--city <value>", `The city of the invoicing entity.`).option("--country <value>", `The country in which the invoicing entity is registered.`).option("--currency <value>", `The currency code that the invoicing entity operates in.`).option("--accounting-currency <value>", `The currency used for accounting purposes.`).option("--invoice-number-pattern <value>", `The pattern used for generating invoice numbers. Available dynamic elements: number {number} (mandatory), year {YYYY}, month {MM} and day {DD}.`).option("--credit-note-number-pattern <value>", `The pattern used for generating credit note numbers. Available dynamic elements: number {number} (mandatory), year {YYYY}, month {MM} and day {DD}.`).option("--document-number-pattern <value>", `The pattern used for generating document numbers. Available dynamic elements: number {number} (mandatory), year {YYYY}, month {MM} and day {DD}.`).option("--default-payment-delay <number>", `The default payment term in days.`).option("--invoice-grace-period-duration <number>", `The grace period duration in days.`).option("--invoice-payment-initiation-delay <number>", `The payment initiation delay in days for the invoices.`).option("--document-payment-initiation-delay <number>", `The payment initiation delay in days for the custom documents.`).option("--invoice-late-fees <value>", `The late fees applicable to the invoices.`).option("--invoice-footer <value>", `The footer text to be used in invoices.`).option("--document-footer <value>", `The footer text to be used in documents. If not specified, the invoice footer will be used.`).option("--logo-url <value>", `URL of the logo to be used in invoices.`).option("--favicon-url <value>", `URL of the logo to be used as favicon.`).option("--brand-color <value>", `Brand color to be used in invoices (hexadecimal color code).`).option("--forced-customer-type <value>", `Forces all customers created under this invoicing entity to have this type. Set to null to allow users to choose.`).option("--credit-note-wallet-refund-enabled", `When enabled, credit note refunds default to the customer's wallet
|
|
42093
|
+
resource.command("update-invoicing-entity").description(`Update an existing invoicing entity's details (address, tax ID, branding, etc.).`).requiredOption("--id <value>", `id parameter`).option("--name <value>", `The name of the invoicing entity.`).option("--registration-number <value>", `The registration number of the invoicing entity.`).option("--tax-id <value>", `The tax identification number of the invoicing entity.`).option("--billing-email <value>", `The billing email address for the invoicing entity.`).option("--timezone <value>", `The timezone the invoicing entity operates in.`).option("--language <value>", `The default language of the invoicing entity.`).option("--is-default", `Flag to indicate if this is the default invoicing entity. If true, it will switch the other existing invoicing entities to non-default.`).option("--address-line1 <value>", `The first line of the address for the invoicing entity.`).option("--address-line2 <value>", `The second line of the address for the invoicing entity.`).option("--zip-code <value>", `The postal code for the invoicing entity's address.`).option("--state <value>", `The state or province of the invoicing entity.`).option("--city <value>", `The city of the invoicing entity.`).option("--country <value>", `The country in which the invoicing entity is registered. It cannot be changed after creation.`).option("--currency <value>", `The currency code that the invoicing entity operates in.`).option("--accounting-currency <value>", `The currency used for accounting purposes.`).option("--invoice-number-pattern <value>", `The pattern used for generating invoice numbers. Available dynamic elements: number {number} (mandatory), year {YYYY}, month {MM} and day {DD}.`).option("--credit-note-number-pattern <value>", `The pattern used for generating credit note numbers. Available dynamic elements: number {number} (mandatory), year {YYYY}, month {MM} and day {DD}.`).option("--document-number-pattern <value>", `The pattern used for generating document numbers. Available dynamic elements: number {number} (mandatory), year {YYYY}, month {MM} and day {DD}.`).option("--default-payment-delay <number>", `The default payment term in days.`).option("--invoice-grace-period-duration <number>", `The grace period duration in days.`).option("--invoice-payment-initiation-delay <number>", `The payment initiation delay in days for the invoices.`).option("--document-payment-initiation-delay <number>", `The payment initiation delay in days for the custom documents.`).option("--invoice-late-fees <value>", `The late fees applicable to the invoices.`).option("--invoice-footer <value>", `The footer text to be used in invoices.`).option("--document-footer <value>", `The footer text to be used in documents. If not specified, the invoice footer will be used.`).option("--logo-url <value>", `URL of the logo to be used in invoices.`).option("--favicon-url <value>", `URL of the logo to be used as favicon.`).option("--brand-color <value>", `Brand color to be used in invoices (hexadecimal color code).`).option("--forced-customer-type <value>", `Forces all customers created under this invoicing entity to have this type. Set to null to allow users to choose.`).option("--credit-note-wallet-refund-enabled", `When enabled and no \`refund_method\` is specified, credit note refunds default to the customer's wallet, including credit notes generated by subscription updates, cancellations, and transitions. An explicit \`refund_method\` always wins. Requires wallets to be enabled at the workspace level.`).option("--standalone-credit-note-creation-enabled", `Whether credit notes without an original invoice can be created under this invoicing entity.`).addHelpText("after", `
|
|
42110
42094
|
Examples:
|
|
42111
42095
|
hyperline invoicing-entities update-invoicing-entity --id <id>
|
|
42112
42096
|
hyperline invoicing-entities update-invoicing-entity --id <id> --name <name> --registration-number <registration_number>
|
|
@@ -43720,7 +43704,7 @@ Payment method strategy used to bill the subscription. By default, the current p
|
|
|
43720
43704
|
- \`current\`: Use the current default payment method of the customer.
|
|
43721
43705
|
- \`external\`: Manage the payments of the subscription outside of Hyperline.
|
|
43722
43706
|
`).option("--available-payment-method-types <json>", `Set the allowed types of payment methods for the customer. Only applies to the \`new\` payment method strategy.`).option("--billing-cycle-alignment <value>", `
|
|
43723
|
-
Alignment of product billing cycles. Only applies when creating a subscription from a plan.
|
|
43707
|
+
Alignment of product billing cycles. Only applies when creating a subscription from a plan. If omitted, the billing cycles alignment configured in the account subscription settings applies.
|
|
43724
43708
|
|
|
43725
43709
|
- \`calendar_period\`: The billing cycles of the products will be aligned on the calendar period, after the first period which will be invoiced taking into account the prorata of the first cycle compared to the product periodicity.
|
|
43726
43710
|
- \`anniversary\`: The billing cycles of the products will be aligned on the anniversary of the phase initial billing date.
|
|
@@ -43812,7 +43796,16 @@ Examples:
|
|
|
43812
43796
|
queryParamKeys: []
|
|
43813
43797
|
});
|
|
43814
43798
|
});
|
|
43815
|
-
resource.command("list").description(`List subscriptions with filters for activation_strategy, status, currency, plan_id, original_quote_id, integration_entity_id, customer_id, invoicing_entity_id, purchase_order, updated_at, custom_properties. Draft, voided, and
|
|
43799
|
+
resource.command("list").description(`List subscriptions with filters for activation_strategy, status, currency, plan_id, original_quote_id, integration_entity_id, customer_id, invoicing_entity_id, purchase_order, updated_at, custom_properties. Draft, voided, cancelled and archived excluded by default (status=all applies the same exclusion); status=any returns every status. Paginated with take/skip.`).option("--take <number>", `take`).option("--skip <number>", `skip`).option("--activation-strategy <value>", `activation_strategy`).option("--activation-strategy.in <value>", `activation_strategy__in`).option("--status <value>", `
|
|
43800
|
+
Subscription status filter.
|
|
43801
|
+
|
|
43802
|
+
- \`active\`, \`pending\`, \`paused\`, \`errored\`, \`cancelled\`, \`draft\`, \`voided\`, \`archived\`: match that status.
|
|
43803
|
+
- \`inactive\`: shortcut for \`pending\` + \`paused\`.
|
|
43804
|
+
- \`all\`: every status except \`draft\`, \`voided\`, \`cancelled\` and \`archived\` \u2014 the same exclusion as omitting the filter.
|
|
43805
|
+
- \`any\`: every status, no exclusion.
|
|
43806
|
+
|
|
43807
|
+
Use \`status__in\` with comma-separated values to combine statuses. When the filter is omitted, \`draft\`, \`voided\`, \`cancelled\` and \`archived\` subscriptions are excluded.
|
|
43808
|
+
`).option("--status.in <value>", `Comma-separated list of subscription statuses to include. Same values as \`status\`.`).option("--currency <value>", `currency`).option("--currency.not <value>", `currency__not`).option("--currency.is-null <value>", `currency__isNull`).option("--currency.is-not-null <value>", `currency__isNotNull`).option("--currency.equals <value>", `currency__equals`).option("--currency.contains <value>", `currency__contains`).option("--currency.starts-with <value>", `currency__startsWith`).option("--currency.end-with <value>", `currency__endWith`).option("--plan-id <value>", `plan_id`).option("--plan-id.not <value>", `plan_id__not`).option("--plan-id.is-null <value>", `plan_id__isNull`).option("--plan-id.is-not-null <value>", `plan_id__isNotNull`).option("--plan-id.equals <value>", `plan_id__equals`).option("--plan-id.contains <value>", `plan_id__contains`).option("--plan-id.starts-with <value>", `plan_id__startsWith`).option("--plan-id.end-with <value>", `plan_id__endWith`).option("--original-quote-id <value>", `original_quote_id`).option("--original-quote-id.not <value>", `original_quote_id__not`).option("--original-quote-id.is-null <value>", `original_quote_id__isNull`).option("--original-quote-id.is-not-null <value>", `original_quote_id__isNotNull`).option("--original-quote-id.equals <value>", `original_quote_id__equals`).option("--original-quote-id.contains <value>", `original_quote_id__contains`).option("--original-quote-id.starts-with <value>", `original_quote_id__startsWith`).option("--original-quote-id.end-with <value>", `original_quote_id__endWith`).option("--customer-id <value>", `customer_id`).option("--customer-id.not <value>", `customer_id__not`).option("--customer-id.is-null <value>", `customer_id__isNull`).option("--customer-id.is-not-null <value>", `customer_id__isNotNull`).option("--customer-id.equals <value>", `customer_id__equals`).option("--customer-id.contains <value>", `customer_id__contains`).option("--customer-id.starts-with <value>", `customer_id__startsWith`).option("--customer-id.end-with <value>", `customer_id__endWith`).option("--invoicing-entity-id <value>", `invoicing_entity_id`).option("--purchase-order <value>", `purchase_order`).option("--purchase-order.not <value>", `purchase_order__not`).option("--purchase-order.is-null <value>", `purchase_order__isNull`).option("--purchase-order.is-not-null <value>", `purchase_order__isNotNull`).option("--purchase-order.equals <value>", `purchase_order__equals`).option("--purchase-order.contains <value>", `purchase_order__contains`).option("--purchase-order.starts-with <value>", `purchase_order__startsWith`).option("--purchase-order.end-with <value>", `purchase_order__endWith`).option("--custom-properties <value>", `custom_properties`).option("--invoice-drafts <value>", `invoice_drafts`).option("--integration-entity-id <value>", `integration_entity_id`).option("--updated-at <value>", `updated_at`).option("--updated-at.not <value>", `updated_at__not`).option("--updated-at.is-null <value>", `updated_at__isNull`).option("--updated-at.is-not-null <value>", `updated_at__isNotNull`).option("--updated-at.equals <value>", `updated_at__equals`).option("--updated-at.lt <value>", `updated_at__lt`).option("--updated-at.lte <value>", `updated_at__lte`).option("--updated-at.gt <value>", `updated_at__gt`).option("--updated-at.gte <value>", `updated_at__gte`).addHelpText("after", `
|
|
43816
43809
|
Examples:
|
|
43817
43810
|
hyperline subscriptions list
|
|
43818
43811
|
hyperline subscriptions list --take <take> --activation-strategy <activation_strategy>`).action(async (opts) => {
|
|
@@ -44439,7 +44432,7 @@ Examples:
|
|
|
44439
44432
|
]
|
|
44440
44433
|
});
|
|
44441
44434
|
});
|
|
44442
|
-
resource.command("create-subscription-transition").description(`
|
|
44435
|
+
resource.command("create-subscription-transition").description(`Submit a transition from one subscription to another. The result may be pending approval, applied immediately, or scheduled.`).requiredOption("--source-subscription-id <value>", `The ID of the subscription to transition from`).option("--name <value>", `An optional name for the transition`).option("--calculation-method <value>", `The calculation method to use for the transition. 'do_not_charge' will not generate any transition invoice. 'pro_rata' will generate a prorated invoice for the remaining period. 'pro_rata_separate_documents' issues a credit note for the current period (the amount invoiced when 'last_renewal', otherwise a prorated cancellation credit) and a separate invoice for the new configuration.`).option("--billing-cycle-transition-method <value>", `The billing cycle transition method to use. 'keep_current_billing_cycle' (the default) keeps the current billing cycle dates; the request is rejected when the phases share no product billing periodicity, as the cycle cannot then be preserved \u2014 use 'align_to_new_billing_cycle' in that case. 'align_to_new_billing_cycle' aligns the billing cycle to the transition date.`).requiredOption("--application-schedule <value>", `When the transition should be applied: 'immediately', 'scheduled' for a specific date, or 'last_renewal' to apply it retroactively to the start of the current billing period (refunding what was already invoiced for that period and re-charging the new configuration). Past dates within the current billing period are supported and will be applied immediately.`).option("--transition-date <value>", `The date at which the transition should occur. Only applicable if the application schedule is 'scheduled'. Can be a past date within the current billing period. UTC date time string in the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.`).requiredOption("--target-subscription <json>", `The configuration of the subscription to transition to`).addHelpText("after", `
|
|
44443
44436
|
Examples:
|
|
44444
44437
|
hyperline subscriptions-transitions create-subscription-transition --source-subscription-id <source_subscription_id> --application-schedule <application_schedule> --target-subscription <target_subscription>
|
|
44445
44438
|
hyperline subscriptions-transitions create-subscription-transition --source-subscription-id <source_subscription_id> --application-schedule <application_schedule> --target-subscription <target_subscription> --name <name> --calculation-method <calculation_method>
|
|
@@ -44876,7 +44869,7 @@ Examples:
|
|
|
44876
44869
|
queryParamKeys: []
|
|
44877
44870
|
});
|
|
44878
44871
|
});
|
|
44879
|
-
resource.command("load").description(`Add
|
|
44872
|
+
resource.command("load").description(`Add free credits, load selected line items from a paid invoice, apply unallocated funds from an existing payment transaction, or record a new paid transaction.`).requiredOption("--id <value>", `id parameter`).option("--type <value>", `Wallet load type. Use \`paid\` to load paid invoice line items, apply an existing payment transaction, or record a new one, or \`free\` to grant credits without collecting payment.`).option("--amount <number>", `Amount to be loaded onto the wallet as free credits. A corresponding credit note will be generated and no payment is collected. Expressed in currency's smallest unit.`).option("--comment <value>", `Internal comment stored on the wallet transaction for context.`).option("--document-status <value>", `Indicates the status of the generated credit note for free top-ups.`).option("--transaction-id <value>", `Existing payment transaction ID whose unallocated amount will be loaded onto the wallet.`).option("--invoice-id <value>", `Paid invoice ID whose selected line items will be loaded onto the wallet.`).option("--invoice-line-item-ids <json>", `IDs of paid invoice line items whose combined amount will be loaded onto the wallet.`).option("--date <value>", `Date of the new offline payment transaction recorded for the wallet load. UTC date time string in the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.`).option("--bank-account-id <value>", `Bank account ID to use when recording a new paid wallet load by bank transfer.`).option("--reference <value>", `Reference stored on the new payment transaction for a paid wallet load.`).addHelpText("after", `
|
|
44880
44873
|
Examples:
|
|
44881
44874
|
hyperline wallets load --id <id>
|
|
44882
44875
|
hyperline wallets load --id <id> --type <type> --amount <amount>
|
|
@@ -44895,12 +44888,20 @@ Examples:
|
|
|
44895
44888
|
args.comment = opts.comment;
|
|
44896
44889
|
if (opts.documentStatus !== void 0)
|
|
44897
44890
|
args.document_status = opts.documentStatus;
|
|
44891
|
+
if (opts.transactionId !== void 0)
|
|
44892
|
+
args.transaction_id = opts.transactionId;
|
|
44893
|
+
if (opts.invoiceId !== void 0)
|
|
44894
|
+
args.invoice_id = opts.invoiceId;
|
|
44895
|
+
if (opts.date !== void 0)
|
|
44896
|
+
args.date = opts.date;
|
|
44898
44897
|
if (opts.bankAccountId !== void 0)
|
|
44899
44898
|
args.bank_account_id = opts.bankAccountId;
|
|
44900
44899
|
if (opts.reference !== void 0)
|
|
44901
44900
|
args.reference = opts.reference;
|
|
44902
44901
|
if (opts.amount !== void 0)
|
|
44903
44902
|
args.amount = Number(opts.amount);
|
|
44903
|
+
if (opts.invoiceLineItemIds !== void 0)
|
|
44904
|
+
args.invoice_line_item_ids = JSON.parse(opts.invoiceLineItemIds);
|
|
44904
44905
|
await ctx.execute({
|
|
44905
44906
|
method: "POST",
|
|
44906
44907
|
path: "/v1/wallets/{id}/load",
|
|
@@ -61150,6 +61151,7 @@ var de = {
|
|
|
61150
61151
|
"invoices.prorata.paymentForItemFullPeriod": "Zahlung f\xFCr",
|
|
61151
61152
|
"invoices.prorata.refundForItem": "Anteilig erstatteter Betrag f\xFCr",
|
|
61152
61153
|
"invoices.prorata.refundForItemFullPeriod": "Erstattung f\xFCr",
|
|
61154
|
+
"wallets.expiredBalanceInvoiceLineName": "{{walletName}} \u2013 abgelaufenes Guthaben",
|
|
61153
61155
|
"subscriptions.closingChargeName": "Abschlussgeb\xFChr f\xFCr das Abonnement",
|
|
61154
61156
|
"subscriptions.correction": "Vorperiodische Anpassung",
|
|
61155
61157
|
"subscriptions.updates.addCoupon": "Gutschein hinzuf\xFCgen {{couponName}}",
|
|
@@ -61181,6 +61183,7 @@ var en = {
|
|
|
61181
61183
|
"invoices.prorata.paymentForItemFullPeriod": "Payment for",
|
|
61182
61184
|
"invoices.prorata.refundForItem": "Prorated refund for",
|
|
61183
61185
|
"invoices.prorata.refundForItemFullPeriod": "Refund for",
|
|
61186
|
+
"wallets.expiredBalanceInvoiceLineName": "{{walletName}} \u2013 expired balance",
|
|
61184
61187
|
"subscriptions.closingChargeName": "Closing fee for subscription",
|
|
61185
61188
|
"subscriptions.correction": "Adjustment previous period",
|
|
61186
61189
|
"subscriptions.updates.addCoupon": "Add coupon {{couponName}}",
|
|
@@ -61240,6 +61243,7 @@ var es = {
|
|
|
61240
61243
|
"invoices.prorata.paymentForItemFullPeriod": "Pago por",
|
|
61241
61244
|
"invoices.prorata.refundForItem": "Reembolso prorrateado por",
|
|
61242
61245
|
"invoices.prorata.refundForItemFullPeriod": "Reembolso por",
|
|
61246
|
+
"wallets.expiredBalanceInvoiceLineName": "{{walletName}} \u2013 saldo caducado",
|
|
61243
61247
|
"subscriptions.closingChargeName": "Cargo por cierre de suscripci\xF3n",
|
|
61244
61248
|
"subscriptions.correction": "Ajuste del periodo anterior",
|
|
61245
61249
|
"subscriptions.updates.addCoupon": "A\xF1adir cup\xF3n {{couponName}}",
|
|
@@ -61285,6 +61289,7 @@ var fr = {
|
|
|
61285
61289
|
"invoices.prorata.paymentForItemFullPeriod": "Paiement pour",
|
|
61286
61290
|
"invoices.prorata.refundForItem": "Remboursement au prorata pour",
|
|
61287
61291
|
"invoices.prorata.refundForItemFullPeriod": "Remboursement pour",
|
|
61292
|
+
"wallets.expiredBalanceInvoiceLineName": "{{walletName}} \u2013 solde expir\xE9",
|
|
61288
61293
|
"subscriptions.closingChargeName": "Frais de cl\xF4ture pour abonnement",
|
|
61289
61294
|
"subscriptions.correction": "Ajustement p\xE9riode pr\xE9c\xE9dente",
|
|
61290
61295
|
"subscriptions.updates.addCoupon": "Ajout du coupon {{couponName}}",
|
|
@@ -61330,6 +61335,7 @@ var it = {
|
|
|
61330
61335
|
"invoices.prorata.paymentForItemFullPeriod": "Pagamento per",
|
|
61331
61336
|
"invoices.prorata.refundForItem": "Rimborso proporzionale per",
|
|
61332
61337
|
"invoices.prorata.refundForItemFullPeriod": "Rimborso per",
|
|
61338
|
+
"wallets.expiredBalanceInvoiceLineName": "{{walletName}} \u2013 saldo scaduto",
|
|
61333
61339
|
"subscriptions.closingChargeName": "Costo di chiusura per abbonamento",
|
|
61334
61340
|
"subscriptions.correction": "Correzione periodo precedente",
|
|
61335
61341
|
"subscriptions.updates.addCoupon": "Aggiungi coupon {{couponName}}",
|
|
@@ -61375,6 +61381,7 @@ var nl = {
|
|
|
61375
61381
|
"invoices.prorata.paymentForItemFullPeriod": "Betaling voor",
|
|
61376
61382
|
"invoices.prorata.refundForItem": "Gedeeltelijke terugbetaling voor",
|
|
61377
61383
|
"invoices.prorata.refundForItemFullPeriod": "Terugbetaling voor",
|
|
61384
|
+
"wallets.expiredBalanceInvoiceLineName": "{{walletName}} \u2013 verlopen saldo",
|
|
61378
61385
|
"subscriptions.closingChargeName": "Afsluitkosten voor abonnement",
|
|
61379
61386
|
"subscriptions.correction": "Aanpassing vorige periode",
|
|
61380
61387
|
"subscriptions.updates.addCoupon": "Coupon toevoegen {{couponName}}",
|
|
@@ -61420,6 +61427,7 @@ var pl = {
|
|
|
61420
61427
|
"invoices.prorata.paymentForItemFullPeriod": "P\u0142atno\u015B\u0107 za",
|
|
61421
61428
|
"invoices.prorata.refundForItem": "Zwrot proporcjonalny za",
|
|
61422
61429
|
"invoices.prorata.refundForItemFullPeriod": "Zwrot za",
|
|
61430
|
+
"wallets.expiredBalanceInvoiceLineName": "{{walletName}} \u2013 wygas\u0142e saldo",
|
|
61423
61431
|
"subscriptions.closingChargeName": "Op\u0142ata za zamkni\u0119cie subskrypcji",
|
|
61424
61432
|
"subscriptions.correction": "Korekta poprzedniego okresu",
|
|
61425
61433
|
"subscriptions.updates.addCoupon": "Dodaj kupon {{couponName}}",
|
|
@@ -61465,6 +61473,7 @@ var pt = {
|
|
|
61465
61473
|
"invoices.prorata.paymentForItemFullPeriod": "Pagamento por",
|
|
61466
61474
|
"invoices.prorata.refundForItem": "Reembolso proporcional por",
|
|
61467
61475
|
"invoices.prorata.refundForItemFullPeriod": "Reembolso por",
|
|
61476
|
+
"wallets.expiredBalanceInvoiceLineName": "{{walletName}} \u2013 saldo expirado",
|
|
61468
61477
|
"subscriptions.closingChargeName": "Taxa de encerramento da assinatura",
|
|
61469
61478
|
"subscriptions.correction": "Ajuste do per\xEDodo anterior",
|
|
61470
61479
|
"subscriptions.updates.addCoupon": "Adicionar cupom {{couponName}}",
|
|
@@ -64185,6 +64194,7 @@ var import_shared3 = __toESM(require_shared(), 1);
|
|
|
64185
64194
|
import * as https from "node:https";
|
|
64186
64195
|
|
|
64187
64196
|
// ../hyperline-lib/build/utils/json.js
|
|
64197
|
+
import { createHash as createHash2 } from "node:crypto";
|
|
64188
64198
|
import { deepEqual } from "fast-equals";
|
|
64189
64199
|
|
|
64190
64200
|
// ../hyperline-lib/build/utils/api/filterBuilder.js
|
|
@@ -64237,7 +64247,7 @@ import { RateLimiterRedis as RateLimiterRedis2, RateLimiterRes as RateLimiterRes
|
|
|
64237
64247
|
import multer from "multer";
|
|
64238
64248
|
|
|
64239
64249
|
// ../hyperline-lib/build/http/middlewares/idempotency.js
|
|
64240
|
-
import { createHash as
|
|
64250
|
+
import { createHash as createHash3 } from "node:crypto";
|
|
64241
64251
|
import { isDeepStrictEqual } from "node:util";
|
|
64242
64252
|
import { idempotency } from "express-idempotency";
|
|
64243
64253
|
|
|
@@ -64415,12 +64425,6 @@ var defaultToolOutputSchema = {
|
|
|
64415
64425
|
result: external_exports.unknown()
|
|
64416
64426
|
};
|
|
64417
64427
|
|
|
64418
|
-
// ../hyperline-mcp/build/session/sessionKey.js
|
|
64419
|
-
import { createHmac } from "node:crypto";
|
|
64420
|
-
|
|
64421
|
-
// ../hyperline-mcp/build/session/sessionManager.js
|
|
64422
|
-
import { LRUCache } from "lru-cache";
|
|
64423
|
-
|
|
64424
64428
|
// build/output.js
|
|
64425
64429
|
function formatOutput({ data, format: format2 }) {
|
|
64426
64430
|
if (format2 === "json") {
|
package/dist/external-deps.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperline/cli",
|
|
3
|
-
"version": "0.1.0-build.1.
|
|
3
|
+
"version": "0.1.0-build.1.34b338e",
|
|
4
4
|
"description": "Agent-first CLI for Hyperline API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -37,7 +37,6 @@
|
|
|
37
37
|
"helmet": "6.2.0",
|
|
38
38
|
"i18next": "22.5.1",
|
|
39
39
|
"json-prune": "1.1.0",
|
|
40
|
-
"lru-cache": "11.0.2",
|
|
41
40
|
"multer": "1.4.5-lts.1",
|
|
42
41
|
"rate-limiter-flexible": "11.0.0",
|
|
43
42
|
"stacktrace-parser": "0.1.10",
|