@hyperline/cli 0.1.0-build.1.501b41c → 0.1.0-build.1.56df68d
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 +121 -49
- package/dist/external-deps.json +1 -1
- package/package.json +2 -2
|
@@ -27224,7 +27224,7 @@ Examples:
|
|
|
27224
27224
|
// build/commands/generated/customers.js
|
|
27225
27225
|
function registerCustomersCommands(parent) {
|
|
27226
27226
|
const resource = parent.command("customers").description("Manage customers");
|
|
27227
|
-
resource.command("list").description(`List customers with optional filters for name, type, status, currency, country, external_id, billing_email, search, tax_id, subscription_status, invoicing_entity_id, custom_properties, payment_method_type, created_at, updated_at. Paginated with take/skip.`).option("--take <number>", `take`).option("--skip <number>", `skip`).option("--name <value>", `name`).option("--name.not <value>", `name__not`).option("--name.is-null <value>", `name__isNull`).option("--name.is-not-null <value>", `name__isNotNull`).option("--name.equals <value>", `name__equals`).option("--name.contains <value>", `name__contains`).option("--name.starts-with <value>", `name__startsWith`).option("--name.end-with <value>", `name__endWith`).option("--type <value>", `type`).option("--type.
|
|
27227
|
+
resource.command("list").description(`List customers with optional filters for name, type, status, currency, country, external_id, billing_email, search, tax_id, subscription_status, invoicing_entity_id, segment_id, custom_properties, payment_method_type, created_at, updated_at. Paginated with take/skip.`).option("--take <number>", `take`).option("--skip <number>", `skip`).option("--name <value>", `name`).option("--name.not <value>", `name__not`).option("--name.is-null <value>", `name__isNull`).option("--name.is-not-null <value>", `name__isNotNull`).option("--name.equals <value>", `name__equals`).option("--name.contains <value>", `name__contains`).option("--name.starts-with <value>", `name__startsWith`).option("--name.end-with <value>", `name__endWith`).option("--type <value>", `type`).option("--type.in <value>", `type__in`).option("--status <value>", `status`).option("--status.in <value>", `status__in`).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("--country <value>", `country`).option("--country.not <value>", `country__not`).option("--country.is-null <value>", `country__isNull`).option("--country.is-not-null <value>", `country__isNotNull`).option("--country.equals <value>", `country__equals`).option("--country.contains <value>", `country__contains`).option("--country.starts-with <value>", `country__startsWith`).option("--country.end-with <value>", `country__endWith`).option("--external-id <value>", `external_id`).option("--external-id.not <value>", `external_id__not`).option("--external-id.is-null <value>", `external_id__isNull`).option("--external-id.is-not-null <value>", `external_id__isNotNull`).option("--external-id.equals <value>", `external_id__equals`).option("--external-id.contains <value>", `external_id__contains`).option("--external-id.starts-with <value>", `external_id__startsWith`).option("--external-id.end-with <value>", `external_id__endWith`).option("--billing-email <value>", `billing_email`).option("--billing-email.not <value>", `billing_email__not`).option("--billing-email.is-null <value>", `billing_email__isNull`).option("--billing-email.is-not-null <value>", `billing_email__isNotNull`).option("--billing-email.equals <value>", `billing_email__equals`).option("--billing-email.contains <value>", `billing_email__contains`).option("--billing-email.starts-with <value>", `billing_email__startsWith`).option("--billing-email.end-with <value>", `billing_email__endWith`).option("--search <value>", `search`).option("--tax-id <value>", `tax_id`).option("--tax-id.not <value>", `tax_id__not`).option("--tax-id.is-null <value>", `tax_id__isNull`).option("--tax-id.is-not-null <value>", `tax_id__isNotNull`).option("--tax-id.equals <value>", `tax_id__equals`).option("--tax-id.contains <value>", `tax_id__contains`).option("--tax-id.starts-with <value>", `tax_id__startsWith`).option("--tax-id.end-with <value>", `tax_id__endWith`).option("--subscription-status <value>", `subscription_status`).option("--subscription-status.in <value>", `subscription_status__in`).option("--invoicing-entity-id <value>", `invoicing_entity_id`).option("--invoicing-entity-id.not <value>", `invoicing_entity_id__not`).option("--invoicing-entity-id.is-null <value>", `invoicing_entity_id__isNull`).option("--invoicing-entity-id.is-not-null <value>", `invoicing_entity_id__isNotNull`).option("--invoicing-entity-id.equals <value>", `invoicing_entity_id__equals`).option("--invoicing-entity-id.contains <value>", `invoicing_entity_id__contains`).option("--invoicing-entity-id.starts-with <value>", `invoicing_entity_id__startsWith`).option("--invoicing-entity-id.end-with <value>", `invoicing_entity_id__endWith`).option("--segment-id <value>", `segment_id`).option("--custom-properties <value>", `custom_properties`).option("--payment-method-type <value>", `payment_method_type`).option("--payment-method-type.in <value>", `payment_method_type__in`).option("--created-at <value>", `created_at`).option("--created-at.not <value>", `created_at__not`).option("--created-at.is-null <value>", `created_at__isNull`).option("--created-at.is-not-null <value>", `created_at__isNotNull`).option("--created-at.equals <value>", `created_at__equals`).option("--created-at.lt <value>", `created_at__lt`).option("--created-at.lte <value>", `created_at__lte`).option("--created-at.gt <value>", `created_at__gt`).option("--created-at.gte <value>", `created_at__gte`).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", `
|
|
27228
27228
|
Examples:
|
|
27229
27229
|
hyperline customers list
|
|
27230
27230
|
hyperline customers list --take <take> --name <name>`).action(async (opts) => {
|
|
@@ -27252,20 +27252,8 @@ Examples:
|
|
|
27252
27252
|
args.name__endWith = opts["name.endWith"];
|
|
27253
27253
|
if (opts.type !== void 0)
|
|
27254
27254
|
args.type = opts.type;
|
|
27255
|
-
if (opts["type.
|
|
27256
|
-
args.
|
|
27257
|
-
if (opts["type.isNull"] !== void 0)
|
|
27258
|
-
args.type__isNull = opts["type.isNull"];
|
|
27259
|
-
if (opts["type.isNotNull"] !== void 0)
|
|
27260
|
-
args.type__isNotNull = opts["type.isNotNull"];
|
|
27261
|
-
if (opts["type.equals"] !== void 0)
|
|
27262
|
-
args.type__equals = opts["type.equals"];
|
|
27263
|
-
if (opts["type.contains"] !== void 0)
|
|
27264
|
-
args.type__contains = opts["type.contains"];
|
|
27265
|
-
if (opts["type.startsWith"] !== void 0)
|
|
27266
|
-
args.type__startsWith = opts["type.startsWith"];
|
|
27267
|
-
if (opts["type.endWith"] !== void 0)
|
|
27268
|
-
args.type__endWith = opts["type.endWith"];
|
|
27255
|
+
if (opts["type.in"] !== void 0)
|
|
27256
|
+
args.type__in = opts["type.in"];
|
|
27269
27257
|
if (opts.status !== void 0)
|
|
27270
27258
|
args.status = opts.status;
|
|
27271
27259
|
if (opts["status.in"] !== void 0)
|
|
@@ -27372,6 +27360,8 @@ Examples:
|
|
|
27372
27360
|
args.invoicing_entity_id__startsWith = opts["invoicingEntityId.startsWith"];
|
|
27373
27361
|
if (opts["invoicingEntityId.endWith"] !== void 0)
|
|
27374
27362
|
args.invoicing_entity_id__endWith = opts["invoicingEntityId.endWith"];
|
|
27363
|
+
if (opts.segmentId !== void 0)
|
|
27364
|
+
args.segment_id = opts.segmentId;
|
|
27375
27365
|
if (opts.customProperties !== void 0)
|
|
27376
27366
|
args.custom_properties = opts.customProperties;
|
|
27377
27367
|
if (opts.paymentMethodType !== void 0)
|
|
@@ -27434,13 +27424,7 @@ Examples:
|
|
|
27434
27424
|
"name__startsWith",
|
|
27435
27425
|
"name__endWith",
|
|
27436
27426
|
"type",
|
|
27437
|
-
"
|
|
27438
|
-
"type__isNull",
|
|
27439
|
-
"type__isNotNull",
|
|
27440
|
-
"type__equals",
|
|
27441
|
-
"type__contains",
|
|
27442
|
-
"type__startsWith",
|
|
27443
|
-
"type__endWith",
|
|
27427
|
+
"type__in",
|
|
27444
27428
|
"status",
|
|
27445
27429
|
"status__in",
|
|
27446
27430
|
"currency",
|
|
@@ -27494,6 +27478,7 @@ Examples:
|
|
|
27494
27478
|
"invoicing_entity_id__contains",
|
|
27495
27479
|
"invoicing_entity_id__startsWith",
|
|
27496
27480
|
"invoicing_entity_id__endWith",
|
|
27481
|
+
"segment_id",
|
|
27497
27482
|
"custom_properties",
|
|
27498
27483
|
"payment_method_type",
|
|
27499
27484
|
"payment_method_type__in",
|
|
@@ -28295,6 +28280,82 @@ Examples:
|
|
|
28295
28280
|
});
|
|
28296
28281
|
}
|
|
28297
28282
|
|
|
28283
|
+
// build/commands/generated/customers-segments.js
|
|
28284
|
+
function registerCustomers_SegmentsCommands(parent) {
|
|
28285
|
+
const resource = parent.command("customers-segments").description("Manage customers > segments");
|
|
28286
|
+
resource.command("list").description(`Retrieve all customer segments.`).option("--take <number>", `take`).option("--skip <number>", `skip`).addHelpText("after", `
|
|
28287
|
+
Examples:
|
|
28288
|
+
hyperline customers-segments list
|
|
28289
|
+
hyperline customers-segments list --take <take>`).action(async (opts) => {
|
|
28290
|
+
const ctx = resource.parent?.opts()._ctx;
|
|
28291
|
+
if (!ctx) {
|
|
28292
|
+
process.stderr.write("Error: Not authenticated\n");
|
|
28293
|
+
process.exit(1);
|
|
28294
|
+
}
|
|
28295
|
+
const args = {};
|
|
28296
|
+
if (opts.take !== void 0)
|
|
28297
|
+
args.take = Number(opts.take);
|
|
28298
|
+
if (opts.skip !== void 0)
|
|
28299
|
+
args.skip = Number(opts.skip);
|
|
28300
|
+
await ctx.execute({
|
|
28301
|
+
method: "GET",
|
|
28302
|
+
path: "/v1/customers/segments",
|
|
28303
|
+
args,
|
|
28304
|
+
queryParamKeys: ["take", "skip"]
|
|
28305
|
+
});
|
|
28306
|
+
});
|
|
28307
|
+
resource.command("create").description(`Create a new customer segment.`).requiredOption("--name <value>", `name`).option("--description <value>", `description`).requiredOption("--rules <value>", `rules`).addHelpText("after", `
|
|
28308
|
+
Examples:
|
|
28309
|
+
hyperline customers-segments create --name <name> --rules <rules>
|
|
28310
|
+
hyperline customers-segments create --name <name> --rules <rules> --description <description>
|
|
28311
|
+
hyperline customers-segments create --name <name> --rules <rules> --output json`).action(async (opts) => {
|
|
28312
|
+
const ctx = resource.parent?.opts()._ctx;
|
|
28313
|
+
if (!ctx) {
|
|
28314
|
+
process.stderr.write("Error: Not authenticated\n");
|
|
28315
|
+
process.exit(1);
|
|
28316
|
+
}
|
|
28317
|
+
const args = {};
|
|
28318
|
+
if (opts.name !== void 0)
|
|
28319
|
+
args.name = opts.name;
|
|
28320
|
+
if (opts.description !== void 0)
|
|
28321
|
+
args.description = opts.description;
|
|
28322
|
+
if (opts.rules !== void 0)
|
|
28323
|
+
args.rules = opts.rules;
|
|
28324
|
+
await ctx.execute({
|
|
28325
|
+
method: "POST",
|
|
28326
|
+
path: "/v1/customers/segments",
|
|
28327
|
+
args,
|
|
28328
|
+
queryParamKeys: []
|
|
28329
|
+
});
|
|
28330
|
+
});
|
|
28331
|
+
resource.command("update").description(`Update an existing customer segment.`).requiredOption("--id <value>", `id parameter`).option("--name <value>", `name`).option("--description <value>", `description`).option("--rules <value>", `rules`).addHelpText("after", `
|
|
28332
|
+
Examples:
|
|
28333
|
+
hyperline customers-segments update --id <id>
|
|
28334
|
+
hyperline customers-segments update --id <id> --name <name> --description <description>
|
|
28335
|
+
hyperline customers-segments update --id <id> --output json`).action(async (opts) => {
|
|
28336
|
+
const ctx = resource.parent?.opts()._ctx;
|
|
28337
|
+
if (!ctx) {
|
|
28338
|
+
process.stderr.write("Error: Not authenticated\n");
|
|
28339
|
+
process.exit(1);
|
|
28340
|
+
}
|
|
28341
|
+
const args = {};
|
|
28342
|
+
if (opts.id !== void 0)
|
|
28343
|
+
args.id = opts.id;
|
|
28344
|
+
if (opts.name !== void 0)
|
|
28345
|
+
args.name = opts.name;
|
|
28346
|
+
if (opts.description !== void 0)
|
|
28347
|
+
args.description = opts.description;
|
|
28348
|
+
if (opts.rules !== void 0)
|
|
28349
|
+
args.rules = opts.rules;
|
|
28350
|
+
await ctx.execute({
|
|
28351
|
+
method: "PATCH",
|
|
28352
|
+
path: "/v1/customers/segments/{id}",
|
|
28353
|
+
args,
|
|
28354
|
+
queryParamKeys: []
|
|
28355
|
+
});
|
|
28356
|
+
});
|
|
28357
|
+
}
|
|
28358
|
+
|
|
28298
28359
|
// build/commands/generated/exports.js
|
|
28299
28360
|
function registerExportsCommands(parent) {
|
|
28300
28361
|
const resource = parent.command("exports").description("Manage exports");
|
|
@@ -28879,7 +28940,7 @@ Payment method strategy used to charge the invoice. Only applies to \`to_pay\` s
|
|
|
28879
28940
|
|
|
28880
28941
|
- \`current\`: Use the current default payment method of the customer.
|
|
28881
28942
|
- \`external\`: Manage the payment of the invoice outside of Hyperline.
|
|
28882
|
-
`).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("--emitted-at <value>", `
|
|
28943
|
+
`).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("--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.`).requiredOption("--line-items <value>", `line_items`).option("--transactions <value>", `transactions`).option("--coupons <value>", `coupons`).addHelpText("after", `
|
|
28883
28944
|
Examples:
|
|
28884
28945
|
hyperline invoices create-invoice --customer-id <customer_id> --line-items <line_items>
|
|
28885
28946
|
hyperline invoices create-invoice --customer-id <customer_id> --line-items <line_items> --currency <currency> --status <status>
|
|
@@ -30060,7 +30121,7 @@ Quote status.
|
|
|
30060
30121
|
- \`draft\`: The quote is a draft.
|
|
30061
30122
|
- \`approved\`: The quote is approved and ready to be sent to the customer.
|
|
30062
30123
|
- \`pending_signature\`: The quote is awaiting the customer's signature.
|
|
30063
|
-
`).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. If not specified, automatically computed from the subscription configuration.`).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("--display-quote-value <value>", `Display the total quote value on the quote.`).option("--display-taxes <value>", `Display tax breakdown on the quote.`).option("--display-price-tiers <value>", `Controls which price tiers are displayed on the quote.
|
|
30124
|
+
`).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. If not specified, automatically computed from the subscription configuration.`).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-taxes <value>", `Display tax breakdown on the quote.`).option("--display-price-tiers <value>", `Controls which price tiers are displayed on the quote.
|
|
30064
30125
|
|
|
30065
30126
|
- \`all\`: Display all pricing tiers.
|
|
30066
30127
|
- \`matching\`: Only display the tiers used to compute the price based on quantity.
|
|
@@ -30092,6 +30153,8 @@ Examples:
|
|
|
30092
30153
|
args.collect_payment_details = opts.collectPaymentDetails;
|
|
30093
30154
|
if (opts.collectCustomPropertyIds !== void 0)
|
|
30094
30155
|
args.collect_custom_property_ids = opts.collectCustomPropertyIds;
|
|
30156
|
+
if (opts.requireTaxId !== void 0)
|
|
30157
|
+
args.require_tax_id = opts.requireTaxId;
|
|
30095
30158
|
if (opts.displayQuoteValue !== void 0)
|
|
30096
30159
|
args.display_quote_value = opts.displayQuoteValue;
|
|
30097
30160
|
if (opts.displayTaxes !== void 0)
|
|
@@ -30732,7 +30795,7 @@ Strategy used to activate the subscription.
|
|
|
30732
30795
|
- \`manually\`: The subscription requires activation through a manual action.
|
|
30733
30796
|
- \`checkout\`: The subscription will be activated once the checkout is completed, but only if the start date is in the past. Otherwise, activation will occur later on the specified start date.
|
|
30734
30797
|
- \`quote\`: The subscription will be activated depending on the configuration and the signature of the related quote.
|
|
30735
|
-
`).option("--products <value>", `Products that make up the subscription.`).option("--coupons <value>", `coupons`).option("--name <value>", `Subscription custom name.`).option("--purchase-order <value>", `Reference to the purchase order.`).option("--invoicing-entity-id <value>", `ID of the invoicing entity attached to the subscription.`).option("--crm-opportunity-id <value>", `ID of the related opportunity/deal in the connected CRM.`).option("--minimum-invoice-fee <number>", `Minimum fee applied to each invoice outside of one time payments.`).option("--contract-terms <value>", `Contract terms linked to the subscription.`).option("--starts-at <value>", `Applies only if the activation strategy is \`start_date\`. UTC date time string in the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.`).option("--initial-billing-at <value>", `Date when the subscription will start being billed. If not specified, it will correspond to the \`starts_at\` date. UTC date time string in the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.`).option("--display-shipping-details <value>", `Indicates if the shipping details should be displayed on the subscription's invoices.`).option("--cancel-at <value>", `Subscription cancel date. UTC date time string in the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.`).option("--cancellation-strategy <value>", `
|
|
30798
|
+
`).option("--products <value>", `Products that make up the subscription.`).option("--coupons <value>", `coupons`).option("--name <value>", `Subscription custom name.`).option("--purchase-order <value>", `Reference to the purchase order.`).option("--invoicing-entity-id <value>", `ID of the invoicing entity attached to the subscription. If not defined, fallback to customer's invoicing entity.`).option("--crm-opportunity-id <value>", `ID of the related opportunity/deal in the connected CRM.`).option("--minimum-invoice-fee <number>", `Minimum fee applied to each invoice outside of one time payments.`).option("--contract-terms <value>", `Contract terms linked to the subscription.`).option("--starts-at <value>", `Applies only if the activation strategy is \`start_date\`. UTC date time string in the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.`).option("--initial-billing-at <value>", `Date when the subscription will start being billed. If not specified, it will correspond to the \`starts_at\` date. UTC date time string in the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.`).option("--display-shipping-details <value>", `Indicates if the shipping details should be displayed on the subscription's invoices.`).option("--cancel-at <value>", `Subscription cancel date. UTC date time string in the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.`).option("--cancellation-strategy <value>", `
|
|
30736
30799
|
Strategy used to cancel the subscription. If not specified \`do_nothing\` is used.
|
|
30737
30800
|
|
|
30738
30801
|
- \`charge_prorata\`: Will charge the customer the unpaid amount for the prorated period up to the end of the current period.
|
|
@@ -30836,7 +30899,7 @@ Examples:
|
|
|
30836
30899
|
queryParamKeys: []
|
|
30837
30900
|
});
|
|
30838
30901
|
});
|
|
30839
|
-
resource.command("list").description(`List subscriptions with filters for activation_strategy, status, currency, plan_id, original_quote_id, customer_id, invoicing_entity_id, purchase_order, updated_at, custom_properties. Draft, voided, and cancelled excluded by default. 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>", `status`).option("--status.in <value>", `status__in`).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("--
|
|
30902
|
+
resource.command("list").description(`List subscriptions with filters for activation_strategy, status, currency, plan_id, original_quote_id, customer_id, invoicing_entity_id, purchase_order, updated_at, custom_properties. Draft, voided, and cancelled excluded by default. 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>", `status`).option("--status.in <value>", `status__in`).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("--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`).option("--custom-properties <value>", `custom_properties`).option("--invoice-drafts <value>", `invoice_drafts`).addHelpText("after", `
|
|
30840
30903
|
Examples:
|
|
30841
30904
|
hyperline subscriptions list
|
|
30842
30905
|
hyperline subscriptions list --take <take> --activation-strategy <activation_strategy>`).action(async (opts) => {
|
|
@@ -30920,20 +30983,6 @@ Examples:
|
|
|
30920
30983
|
args.customer_id__endWith = opts["customerId.endWith"];
|
|
30921
30984
|
if (opts.invoicingEntityId !== void 0)
|
|
30922
30985
|
args.invoicing_entity_id = opts.invoicingEntityId;
|
|
30923
|
-
if (opts["invoicingEntityId.not"] !== void 0)
|
|
30924
|
-
args.invoicing_entity_id__not = opts["invoicingEntityId.not"];
|
|
30925
|
-
if (opts["invoicingEntityId.isNull"] !== void 0)
|
|
30926
|
-
args.invoicing_entity_id__isNull = opts["invoicingEntityId.isNull"];
|
|
30927
|
-
if (opts["invoicingEntityId.isNotNull"] !== void 0)
|
|
30928
|
-
args.invoicing_entity_id__isNotNull = opts["invoicingEntityId.isNotNull"];
|
|
30929
|
-
if (opts["invoicingEntityId.equals"] !== void 0)
|
|
30930
|
-
args.invoicing_entity_id__equals = opts["invoicingEntityId.equals"];
|
|
30931
|
-
if (opts["invoicingEntityId.contains"] !== void 0)
|
|
30932
|
-
args.invoicing_entity_id__contains = opts["invoicingEntityId.contains"];
|
|
30933
|
-
if (opts["invoicingEntityId.startsWith"] !== void 0)
|
|
30934
|
-
args.invoicing_entity_id__startsWith = opts["invoicingEntityId.startsWith"];
|
|
30935
|
-
if (opts["invoicingEntityId.endWith"] !== void 0)
|
|
30936
|
-
args.invoicing_entity_id__endWith = opts["invoicingEntityId.endWith"];
|
|
30937
30986
|
if (opts.purchaseOrder !== void 0)
|
|
30938
30987
|
args.purchase_order = opts.purchaseOrder;
|
|
30939
30988
|
if (opts["purchaseOrder.not"] !== void 0)
|
|
@@ -31020,13 +31069,6 @@ Examples:
|
|
|
31020
31069
|
"customer_id__startsWith",
|
|
31021
31070
|
"customer_id__endWith",
|
|
31022
31071
|
"invoicing_entity_id",
|
|
31023
|
-
"invoicing_entity_id__not",
|
|
31024
|
-
"invoicing_entity_id__isNull",
|
|
31025
|
-
"invoicing_entity_id__isNotNull",
|
|
31026
|
-
"invoicing_entity_id__equals",
|
|
31027
|
-
"invoicing_entity_id__contains",
|
|
31028
|
-
"invoicing_entity_id__startsWith",
|
|
31029
|
-
"invoicing_entity_id__endWith",
|
|
31030
31072
|
"purchase_order",
|
|
31031
31073
|
"purchase_order__not",
|
|
31032
31074
|
"purchase_order__isNull",
|
|
@@ -32043,6 +32085,7 @@ function registerAllCommands(program2) {
|
|
|
32043
32085
|
registerCustomers_Payment_MethodsCommands(program2);
|
|
32044
32086
|
registerCustomersCommands(program2);
|
|
32045
32087
|
registerOrganisationsCommands(program2);
|
|
32088
|
+
registerCustomers_SegmentsCommands(program2);
|
|
32046
32089
|
registerExportsCommands(program2);
|
|
32047
32090
|
registerFilesCommands(program2);
|
|
32048
32091
|
registerInvoicesCommands(program2);
|
|
@@ -48935,7 +48978,8 @@ var config3 = getConfig({
|
|
|
48935
48978
|
LOGGER_STDOUT_ENABLED: types.boolean().optional(),
|
|
48936
48979
|
NODE_ENV: types.enum(["local", "test", "staging", "sandbox", "production"]),
|
|
48937
48980
|
EVENT_LOOP_MONITORING_ENABLED: types.boolean().optional(),
|
|
48938
|
-
MEMORY_MONITORING_ENABLED: types.boolean().optional()
|
|
48981
|
+
MEMORY_MONITORING_ENABLED: types.boolean().optional(),
|
|
48982
|
+
MEMORY_MONITORING_INTERVAL_MS: types.number().optional()
|
|
48939
48983
|
// secrets
|
|
48940
48984
|
}, {
|
|
48941
48985
|
APP_VERSION: void 0,
|
|
@@ -48943,6 +48987,7 @@ var config3 = getConfig({
|
|
|
48943
48987
|
LOGGER_STDOUT_ENABLED: false,
|
|
48944
48988
|
EVENT_LOOP_MONITORING_ENABLED: false,
|
|
48945
48989
|
MEMORY_MONITORING_ENABLED: false,
|
|
48990
|
+
MEMORY_MONITORING_INTERVAL_MS: 3e4,
|
|
48946
48991
|
NODE_ENV: "test"
|
|
48947
48992
|
});
|
|
48948
48993
|
|
|
@@ -49391,6 +49436,9 @@ var languages = [
|
|
|
49391
49436
|
|
|
49392
49437
|
// ../hyperline-i18n/build/locales/de.js
|
|
49393
49438
|
var de = {
|
|
49439
|
+
"accounting.invoicePosted.entryDescription": "Buchungseintrag f\xFCr Rechnung {{invoiceNumber}}",
|
|
49440
|
+
"accounting.transactionSettled.entryDescription": "Zahlungsabwicklung f\xFCr Rechnung {{invoiceNumber}}",
|
|
49441
|
+
"accounting.creditNotePosted.entryDescription": "Gutschrift {{creditNoteNumber}} f\xFCr Rechnung {{invoiceNumber}}",
|
|
49394
49442
|
"accounting.revrec.creditLineDescription": "Umsatz realisieren \u2013 Zeitplan {{scheduleId}}, Zeitraum {{periodDate}}",
|
|
49395
49443
|
"accounting.revrec.debitLineDescription": "Abgrenzungsposten reduzieren \u2013 Zeitplan {{scheduleId}}, Zeitraum {{periodDate}}",
|
|
49396
49444
|
"accounting.revrec.discountCreditLineDescription": "Erl\xF6sminderung (Rabatt) erfassen \u2013 Zeitplan {{scheduleId}}, Zeitraum {{periodDate}}",
|
|
@@ -49453,6 +49501,9 @@ var en = {
|
|
|
49453
49501
|
"subscriptions.updates.updateCount.description.full.committed.not_invoiced": "Amount of {{amount}} (with a minimum committed count of {{committedCount}}) not invoiced for the full period",
|
|
49454
49502
|
"subscriptions.updates.updateCount.description.full.not_committed.invoiced": "This line has been invoiced for the full period",
|
|
49455
49503
|
"subscriptions.updates.updateCount.description.full.not_committed.not_invoiced": "Amount of {{amount}} not invoiced for the full period",
|
|
49504
|
+
"accounting.invoicePosted.entryDescription": "Posting entry for Invoice {{invoiceNumber}} issued",
|
|
49505
|
+
"accounting.transactionSettled.entryDescription": "Payment settlement for Invoice {{invoiceNumber}}",
|
|
49506
|
+
"accounting.creditNotePosted.entryDescription": "Credit note {{creditNoteNumber}} for Invoice {{invoiceNumber}}",
|
|
49456
49507
|
"accounting.revrec.entryDescription": "Revenue recognition for schedule {{scheduleId}}, period {{periodStart}} - {{periodEnd}}",
|
|
49457
49508
|
"accounting.revrec.debitLineDescription": "Decrease deferred revenue \u2013 schedule {{scheduleId}}, period {{periodDate}}",
|
|
49458
49509
|
"accounting.revrec.creditLineDescription": "Recognize revenue \u2013 schedule {{scheduleId}}, period {{periodDate}}",
|
|
@@ -49465,6 +49516,9 @@ var en = {
|
|
|
49465
49516
|
|
|
49466
49517
|
// ../hyperline-i18n/build/locales/es.js
|
|
49467
49518
|
var es = {
|
|
49519
|
+
"accounting.invoicePosted.entryDescription": "Asiento contable para la factura {{invoiceNumber}}",
|
|
49520
|
+
"accounting.transactionSettled.entryDescription": "Liquidaci\xF3n de pago para la factura {{invoiceNumber}}",
|
|
49521
|
+
"accounting.creditNotePosted.entryDescription": "Nota de cr\xE9dito {{creditNoteNumber}} para la factura {{invoiceNumber}}",
|
|
49468
49522
|
"accounting.revrec.creditLineDescription": "Reconocer ingresos \u2013 cronograma {{scheduleId}}, per\xEDodo {{periodDate}}",
|
|
49469
49523
|
"accounting.revrec.debitLineDescription": "Disminuci\xF3n de ingresos diferidos \u2013 cronograma {{scheduleId}}, per\xEDodo {{periodDate}}",
|
|
49470
49524
|
"accounting.revrec.discountCreditLineDescription": "Reconocer contra-ingresos (descuento) \u2013 cronograma {{scheduleId}}, per\xEDodo {{periodDate}}",
|
|
@@ -49506,6 +49560,9 @@ var fr = {
|
|
|
49506
49560
|
"accounting.revrec.debitLineDescription": "Diminution des produits constat\xE9s d'avance \u2013 \xE9ch\xE9ancier {{scheduleId}}, p\xE9riode {{periodDate}}",
|
|
49507
49561
|
"accounting.revrec.discountCreditLineDescription": "Reconnaissance du contre-revenu (remise) \u2013 \xE9ch\xE9ancier {{scheduleId}}, p\xE9riode {{periodDate}}",
|
|
49508
49562
|
"accounting.revrec.discountDebitLineDescription": "Diminution des remises diff\xE9r\xE9es \u2013 \xE9ch\xE9ancier {{scheduleId}}, p\xE9riode {{periodDate}}",
|
|
49563
|
+
"accounting.invoicePosted.entryDescription": "\xC9criture de comptabilisation pour la facture {{invoiceNumber}}",
|
|
49564
|
+
"accounting.transactionSettled.entryDescription": "R\xE8glement de la facture {{invoiceNumber}}",
|
|
49565
|
+
"accounting.creditNotePosted.entryDescription": "Avoir {{creditNoteNumber}} pour la facture {{invoiceNumber}}",
|
|
49509
49566
|
"accounting.revrec.entryDescription": "Reconnaissance du chiffre d'affaires pour l'\xE9ch\xE9ancier {{scheduleId}}, p\xE9riode {{periodStart}} - {{periodEnd}}",
|
|
49510
49567
|
"creditNotes.refundChargeName": "Remboursement pour facture",
|
|
49511
49568
|
"credits.bundleOf": "{{productName}} - Pack de {{creditCount}} cr\xE9dits",
|
|
@@ -49539,6 +49596,9 @@ var fr = {
|
|
|
49539
49596
|
|
|
49540
49597
|
// ../hyperline-i18n/build/locales/it.js
|
|
49541
49598
|
var it = {
|
|
49599
|
+
"accounting.invoicePosted.entryDescription": "Registrazione contabile per la fattura {{invoiceNumber}}",
|
|
49600
|
+
"accounting.transactionSettled.entryDescription": "Regolamento pagamento per la fattura {{invoiceNumber}}",
|
|
49601
|
+
"accounting.creditNotePosted.entryDescription": "Nota di credito {{creditNoteNumber}} per la fattura {{invoiceNumber}}",
|
|
49542
49602
|
"accounting.revrec.creditLineDescription": "Riconoscere i ricavi \u2013 programma {{scheduleId}}, periodo {{periodDate}}",
|
|
49543
49603
|
"accounting.revrec.debitLineDescription": "Diminuzione dei ricavi differiti \u2013 programma {{scheduleId}}, periodo {{periodDate}}",
|
|
49544
49604
|
"accounting.revrec.discountCreditLineDescription": "Riconoscere il contra-ricavo (sconto) \u2013 programma {{scheduleId}}, periodo {{periodDate}}",
|
|
@@ -49576,6 +49636,9 @@ var it = {
|
|
|
49576
49636
|
|
|
49577
49637
|
// ../hyperline-i18n/build/locales/nl.js
|
|
49578
49638
|
var nl = {
|
|
49639
|
+
"accounting.invoicePosted.entryDescription": "Boekingsregel voor factuur {{invoiceNumber}}",
|
|
49640
|
+
"accounting.transactionSettled.entryDescription": "Betalingsafwikkeling voor factuur {{invoiceNumber}}",
|
|
49641
|
+
"accounting.creditNotePosted.entryDescription": "Creditnota {{creditNoteNumber}} voor factuur {{invoiceNumber}}",
|
|
49579
49642
|
"accounting.revrec.creditLineDescription": "Omzet erkennen \u2013 schema {{scheduleId}}, periode {{periodDate}}",
|
|
49580
49643
|
"accounting.revrec.debitLineDescription": "Uitgestelde omzet verlagen \u2013 schema {{scheduleId}}, periode {{periodDate}}",
|
|
49581
49644
|
"accounting.revrec.discountCreditLineDescription": "Omzetvermindering (korting) erkennen \u2013 schema {{scheduleId}}, periode {{periodDate}}",
|
|
@@ -49613,6 +49676,9 @@ var nl = {
|
|
|
49613
49676
|
|
|
49614
49677
|
// ../hyperline-i18n/build/locales/pl.js
|
|
49615
49678
|
var pl = {
|
|
49679
|
+
"accounting.invoicePosted.entryDescription": "Zapis ksi\u0119gowy dla faktury {{invoiceNumber}}",
|
|
49680
|
+
"accounting.transactionSettled.entryDescription": "Rozliczenie p\u0142atno\u015Bci dla faktury {{invoiceNumber}}",
|
|
49681
|
+
"accounting.creditNotePosted.entryDescription": "Nota kredytowa {{creditNoteNumber}} dla faktury {{invoiceNumber}}",
|
|
49616
49682
|
"accounting.revrec.creditLineDescription": "Rozpoznanie przychodu \u2013 harmonogram {{scheduleId}}, okres {{periodDate}}",
|
|
49617
49683
|
"accounting.revrec.debitLineDescription": "Zmniejszenie przychod\xF3w przysz\u0142ych okres\xF3w \u2013 harmonogram {{scheduleId}}, okres {{periodDate}}",
|
|
49618
49684
|
"accounting.revrec.discountCreditLineDescription": "Rozpoznanie kontra-przychodu (rabat) \u2013 harmonogram {{scheduleId}}, okres {{periodDate}}",
|
|
@@ -49650,6 +49716,9 @@ var pl = {
|
|
|
49650
49716
|
|
|
49651
49717
|
// ../hyperline-i18n/build/locales/pt.js
|
|
49652
49718
|
var pt = {
|
|
49719
|
+
"accounting.invoicePosted.entryDescription": "Lan\xE7amento cont\xE1bil para a fatura {{invoiceNumber}}",
|
|
49720
|
+
"accounting.transactionSettled.entryDescription": "Liquida\xE7\xE3o de pagamento para a fatura {{invoiceNumber}}",
|
|
49721
|
+
"accounting.creditNotePosted.entryDescription": "Nota de cr\xE9dito {{creditNoteNumber}} para a fatura {{invoiceNumber}}",
|
|
49653
49722
|
"accounting.revrec.creditLineDescription": "Reconhecer receita \u2013 cronograma {{scheduleId}}, per\xEDodo {{periodDate}}",
|
|
49654
49723
|
"accounting.revrec.debitLineDescription": "Diminui\xE7\xE3o da receita diferida \u2013 cronograma {{scheduleId}}, per\xEDodo {{periodDate}}",
|
|
49655
49724
|
"accounting.revrec.discountCreditLineDescription": "Reconhecer contra-receita (desconto) \u2013 cronograma {{scheduleId}}, per\xEDodo {{periodDate}}",
|
|
@@ -49717,9 +49786,12 @@ var LocaleSchema = external_exports.string().refine((value) => {
|
|
|
49717
49786
|
var import_shared3 = __toESM(require_shared(), 1);
|
|
49718
49787
|
var TimezoneSchema = external_exports.enum((0, import_shared3.getTimezones)().map((timezone) => timezone.name));
|
|
49719
49788
|
|
|
49720
|
-
// ../hyperline-lib/build/http/middlewares/
|
|
49789
|
+
// ../hyperline-lib/build/http/middlewares/distributedConcurrencyLimiter.js
|
|
49721
49790
|
import { RateLimiterRedis, RateLimiterRes } from "rate-limiter-flexible";
|
|
49722
49791
|
|
|
49792
|
+
// ../hyperline-lib/build/http/middlewares/distributedRateLimiter.js
|
|
49793
|
+
import { RateLimiterRedis as RateLimiterRedis2, RateLimiterRes as RateLimiterRes2 } from "rate-limiter-flexible";
|
|
49794
|
+
|
|
49723
49795
|
// ../hyperline-lib/build/http/middlewares/httpErrorHandler.js
|
|
49724
49796
|
import multer from "multer";
|
|
49725
49797
|
|
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.56df68d",
|
|
4
4
|
"description": "Agent-first CLI for Hyperline API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"json-prune": "1.1.0",
|
|
37
37
|
"lru-cache": "11.0.2",
|
|
38
38
|
"multer": "1.4.5-lts.1",
|
|
39
|
-
"rate-limiter-flexible": "
|
|
39
|
+
"rate-limiter-flexible": "11.0.0",
|
|
40
40
|
"stacktrace-parser": "0.1.10",
|
|
41
41
|
"uuid": "9.0.1",
|
|
42
42
|
"winston": "3.10.0"
|