@hyperline/cli 0.1.0-build.1.906c519 → 0.1.0-build.1.91ef4cc
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.
|
@@ -38781,7 +38781,7 @@ Customer type.
|
|
|
38781
38781
|
- \`corporate\`: The customer is a business entity.
|
|
38782
38782
|
- \`person\`: The customer is a natural person.
|
|
38783
38783
|
- \`automatically_created\`: The customer was automatically imported (e.g. from a data loader). This value cannot be used when creating/editing.
|
|
38784
|
-
`).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.
|
|
38784
|
+
`).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("--local-tax-number <value>", `Customer local tax number.`).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.
|
|
38785
38785
|
|
|
38786
38786
|
- \`taxable\`: Taxes are automatically determined for the customer.
|
|
38787
38787
|
- \`exempt\`: The customer is exempt from tax.
|
|
@@ -38810,6 +38810,8 @@ Examples:
|
|
|
38810
38810
|
args.currency = opts.currency;
|
|
38811
38811
|
if (opts.taxIds !== void 0)
|
|
38812
38812
|
args.tax_ids = opts.taxIds;
|
|
38813
|
+
if (opts.localTaxNumber !== void 0)
|
|
38814
|
+
args.local_tax_number = opts.localTaxNumber;
|
|
38813
38815
|
if (opts.taxability !== void 0)
|
|
38814
38816
|
args.taxability = opts.taxability;
|
|
38815
38817
|
if (opts.registrationNumber !== void 0)
|
|
@@ -38912,7 +38914,7 @@ Customer type.
|
|
|
38912
38914
|
- \`corporate\`: The customer is a business entity.
|
|
38913
38915
|
- \`person\`: The customer is a natural person.
|
|
38914
38916
|
- \`automatically_created\`: The customer was automatically imported (e.g. from a data loader). This value cannot be used when creating/editing.
|
|
38915
|
-
`).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.
|
|
38917
|
+
`).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("--local-tax-number <value>", `Customer local tax number.`).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.
|
|
38916
38918
|
|
|
38917
38919
|
- \`taxable\`: Taxes are automatically determined for the customer.
|
|
38918
38920
|
- \`exempt\`: The customer is exempt from tax.
|
|
@@ -38943,6 +38945,8 @@ Examples:
|
|
|
38943
38945
|
args.currency = opts.currency;
|
|
38944
38946
|
if (opts.taxIds !== void 0)
|
|
38945
38947
|
args.tax_ids = opts.taxIds;
|
|
38948
|
+
if (opts.localTaxNumber !== void 0)
|
|
38949
|
+
args.local_tax_number = opts.localTaxNumber;
|
|
38946
38950
|
if (opts.taxability !== void 0)
|
|
38947
38951
|
args.taxability = opts.taxability;
|
|
38948
38952
|
if (opts.registrationNumber !== void 0)
|
|
@@ -40278,7 +40282,7 @@ Payment method strategy used to charge the invoice. Only applies to \`to_pay\` s
|
|
|
40278
40282
|
|
|
40279
40283
|
- \`current\`: Use the current default payment method of the customer.
|
|
40280
40284
|
- \`external\`: Manage the payment of the invoice outside of Hyperline.
|
|
40281
|
-
`).option("--payment-method-id <value>", `ID of the default payment method used to pay the invoice. Transactions related to the invoice may use different payment methods.`).option("--bank-account-id <value>", `ID of the bank account displayed on the invoice. Transactions related to the invoice may use different bank accounts.`).option("--subscription-id <value>", `ID of the subscription related to the invoice.`).option("--emitted-at <value>", `Issue date of the invoice.`).option("--due-at <value>", `Due date of the invoice. Computed from the issue date and the payment delay configured in your settings.`).option("--settled-at <value>", `Date the invoice was fully paid.`).option("--properties <value>", `Key/value pairs to store any metadata useful in your context.`).option("--custom-properties <value>", `Values for custom properties defined for the \`invoice\` entity, keyed by slug.`).option("--additional-display-fields <value>", `Ordered additional fields displayed on the invoice PDF.
|
|
40285
|
+
`).option("--payment-method-id <value>", `ID of the default payment method used to pay the invoice. Transactions related to the invoice may use different payment methods.`).option("--bank-account-id <value>", `ID of the bank account displayed on the invoice. Transactions related to the invoice may use different bank accounts.`).option("--subscription-id <value>", `ID of the subscription related to the invoice.`).option("--emitted-at <value>", `Issue date of the invoice.`).option("--due-at <value>", `Due date of the invoice. Computed from the issue date and the payment delay configured in your settings.`).option("--settled-at <value>", `Date the invoice was fully paid.`).option("--properties <value>", `Key/value pairs to store any metadata useful in your context.`).option("--custom-properties <value>", `Values for custom properties defined for the \`invoice\` entity, keyed by slug.`).option("--additional-display-fields <value>", `Ordered additional fields displayed on the invoice PDF. Invoice and customer custom properties are referenced by slug.`).requiredOption("--line-items <value>", `line_items`).option("--transactions <value>", `transactions`).option("--coupons <value>", `coupons`).addHelpText("after", `
|
|
40282
40286
|
Examples:
|
|
40283
40287
|
hyperline invoices create-invoice --customer-id <customer_id> --line-items <line_items>
|
|
40284
40288
|
hyperline invoices create-invoice --customer-id <customer_id> --line-items <line_items> --currency <currency> --status <status>
|
|
@@ -40516,7 +40520,7 @@ Examples:
|
|
|
40516
40520
|
|
|
40517
40521
|
- \`auto\`: Tax is automatically computed and applied.
|
|
40518
40522
|
- \`not_eligible\`: Tax collection is disabled for the invoice.
|
|
40519
|
-
`).option("--line-items <value>", `line_items`).option("--coupons <value>", `coupons`).option("--payment-method-type <value>", `payment_method_type`).option("--payment-method-id <value>", `ID of the default payment method used to pay the invoice. Transactions related to the invoice may use different payment methods.`).option("--bank-account-id <value>", `ID of the bank account displayed on the invoice. Transactions related to the invoice may use different bank accounts.`).option("--properties <value>", `Key/value pairs to store any metadata useful in your context.`).option("--custom-properties <value>", `Values for custom properties defined for the \`invoice\` entity, keyed by slug.`).option("--additional-display-fields <value>", `Ordered additional fields displayed on the invoice PDF.
|
|
40523
|
+
`).option("--line-items <value>", `line_items`).option("--coupons <value>", `coupons`).option("--payment-method-type <value>", `payment_method_type`).option("--payment-method-id <value>", `ID of the default payment method used to pay the invoice. Transactions related to the invoice may use different payment methods.`).option("--bank-account-id <value>", `ID of the bank account displayed on the invoice. Transactions related to the invoice may use different bank accounts.`).option("--properties <value>", `Key/value pairs to store any metadata useful in your context.`).option("--custom-properties <value>", `Values for custom properties defined for the \`invoice\` entity, keyed by slug.`).option("--additional-display-fields <value>", `Ordered additional fields displayed on the invoice PDF. Invoice and customer custom properties are referenced by slug.`).option("--customer <value>", `Override customer details on the invoice. Only allowed for draft or grace period invoices.`).addHelpText("after", `
|
|
40520
40524
|
Examples:
|
|
40521
40525
|
hyperline invoices update --id <id>
|
|
40522
40526
|
hyperline invoices update --id <id> --type <type> --document-name <document_name>
|
|
@@ -43176,7 +43180,7 @@ Examples:
|
|
|
43176
43180
|
]
|
|
43177
43181
|
});
|
|
43178
43182
|
});
|
|
43179
|
-
resource.command("create-subscription-transition").description(`Create a transition from one subscription to another, configured from a subscription, plan, or template. Can be 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. '
|
|
43183
|
+
resource.command("create-subscription-transition").description(`Create a transition from one subscription to another, configured from a subscription, plan, or template. Can be 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 <value>", `The configuration of the subscription to transition to`).addHelpText("after", `
|
|
43180
43184
|
Examples:
|
|
43181
43185
|
hyperline subscriptions-transitions create-subscription-transition --source-subscription-id <source_subscription_id> --application-schedule <application_schedule> --target-subscription <target_subscription>
|
|
43182
43186
|
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>
|
|
@@ -62945,6 +62949,11 @@ var recommendedRetryConfig = {
|
|
|
62945
62949
|
},
|
|
62946
62950
|
retryDelay: axiosRetry.exponentialDelay
|
|
62947
62951
|
};
|
|
62952
|
+
var networkOnlyRetryConfig = {
|
|
62953
|
+
retries: 3,
|
|
62954
|
+
retryCondition: isNetworkOrIdempotentRequestError,
|
|
62955
|
+
retryDelay: axiosRetry.exponentialDelay
|
|
62956
|
+
};
|
|
62948
62957
|
function buildHttpClient(dependencies) {
|
|
62949
62958
|
const { logger: logger2, config: config4, retry } = dependencies;
|
|
62950
62959
|
const client = axios2.create(config4);
|
|
@@ -63010,6 +63019,13 @@ var toLogRequest = (config4) => {
|
|
|
63010
63019
|
};
|
|
63011
63020
|
};
|
|
63012
63021
|
|
|
63022
|
+
// ../hyperline-lib/build/httpClient/publicUrlFetch.js
|
|
63023
|
+
import { lookup } from "node:dns/promises";
|
|
63024
|
+
import { isIP } from "node:net";
|
|
63025
|
+
import { Agent } from "undici";
|
|
63026
|
+
var PINNED_DISPATCHER_TTL_MS = 5 * 60 * 1e3;
|
|
63027
|
+
var DEFAULT_MAX_RESPONSE_BYTES = 2 * 1024 * 1024;
|
|
63028
|
+
|
|
63013
63029
|
// ../hyperline-lib/build/httpRouter/express.js
|
|
63014
63030
|
import { OpenAPIRegistry as OpenAPIRegistry2, OpenApiGeneratorV31 } from "@asteasolutions/zod-to-openapi";
|
|
63015
63031
|
import { Router as ExpressRouter } from "express";
|
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.91ef4cc",
|
|
4
4
|
"description": "Agent-first CLI for Hyperline API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
"multer": "1.4.5-lts.1",
|
|
42
42
|
"rate-limiter-flexible": "11.0.0",
|
|
43
43
|
"stacktrace-parser": "0.1.10",
|
|
44
|
+
"undici": "7.25.0",
|
|
44
45
|
"uuid": "9.0.1",
|
|
45
46
|
"winston": "3.10.0"
|
|
46
47
|
},
|