@hyperline/cli 0.1.0-build.1.b1ea190 → 0.1.0-build.1.bb4dc78

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.
@@ -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.not <value>", `type__not`).option("--type.is-null <value>", `type__isNull`).option("--type.is-not-null <value>", `type__isNotNull`).option("--type.equals <value>", `type__equals`).option("--type.contains <value>", `type__contains`).option("--type.starts-with <value>", `type__startsWith`).option("--type.end-with <value>", `type__endWith`).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("--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", `
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.not <value>", `type__not`).option("--type.is-null <value>", `type__isNull`).option("--type.is-not-null <value>", `type__isNotNull`).option("--type.equals <value>", `type__equals`).option("--type.contains <value>", `type__contains`).option("--type.starts-with <value>", `type__startsWith`).option("--type.end-with <value>", `type__endWith`).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) => {
@@ -27372,6 +27372,8 @@ Examples:
27372
27372
  args.invoicing_entity_id__startsWith = opts["invoicingEntityId.startsWith"];
27373
27373
  if (opts["invoicingEntityId.endWith"] !== void 0)
27374
27374
  args.invoicing_entity_id__endWith = opts["invoicingEntityId.endWith"];
27375
+ if (opts.segmentId !== void 0)
27376
+ args.segment_id = opts.segmentId;
27375
27377
  if (opts.customProperties !== void 0)
27376
27378
  args.custom_properties = opts.customProperties;
27377
27379
  if (opts.paymentMethodType !== void 0)
@@ -27494,6 +27496,7 @@ Examples:
27494
27496
  "invoicing_entity_id__contains",
27495
27497
  "invoicing_entity_id__startsWith",
27496
27498
  "invoicing_entity_id__endWith",
27499
+ "segment_id",
27497
27500
  "custom_properties",
27498
27501
  "payment_method_type",
27499
27502
  "payment_method_type__in",
@@ -28295,6 +28298,82 @@ Examples:
28295
28298
  });
28296
28299
  }
28297
28300
 
28301
+ // build/commands/generated/customers-segments.js
28302
+ function registerCustomers_SegmentsCommands(parent) {
28303
+ const resource = parent.command("customers-segments").description("Manage customers > segments");
28304
+ resource.command("list").description(`Retrieve all customer segments.`).option("--take <number>", `take`).option("--skip <number>", `skip`).addHelpText("after", `
28305
+ Examples:
28306
+ hyperline customers-segments list
28307
+ hyperline customers-segments list --take <take>`).action(async (opts) => {
28308
+ const ctx = resource.parent?.opts()._ctx;
28309
+ if (!ctx) {
28310
+ process.stderr.write("Error: Not authenticated\n");
28311
+ process.exit(1);
28312
+ }
28313
+ const args = {};
28314
+ if (opts.take !== void 0)
28315
+ args.take = Number(opts.take);
28316
+ if (opts.skip !== void 0)
28317
+ args.skip = Number(opts.skip);
28318
+ await ctx.execute({
28319
+ method: "GET",
28320
+ path: "/v1/customers/segments",
28321
+ args,
28322
+ queryParamKeys: ["take", "skip"]
28323
+ });
28324
+ });
28325
+ resource.command("create").description(`Create a new customer segment.`).requiredOption("--name <value>", `name`).option("--description <value>", `description`).requiredOption("--rules <value>", `rules`).addHelpText("after", `
28326
+ Examples:
28327
+ hyperline customers-segments create --name <name> --rules <rules>
28328
+ hyperline customers-segments create --name <name> --rules <rules> --description <description>
28329
+ hyperline customers-segments create --name <name> --rules <rules> --output json`).action(async (opts) => {
28330
+ const ctx = resource.parent?.opts()._ctx;
28331
+ if (!ctx) {
28332
+ process.stderr.write("Error: Not authenticated\n");
28333
+ process.exit(1);
28334
+ }
28335
+ const args = {};
28336
+ if (opts.name !== void 0)
28337
+ args.name = opts.name;
28338
+ if (opts.description !== void 0)
28339
+ args.description = opts.description;
28340
+ if (opts.rules !== void 0)
28341
+ args.rules = opts.rules;
28342
+ await ctx.execute({
28343
+ method: "POST",
28344
+ path: "/v1/customers/segments",
28345
+ args,
28346
+ queryParamKeys: []
28347
+ });
28348
+ });
28349
+ 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", `
28350
+ Examples:
28351
+ hyperline customers-segments update --id <id>
28352
+ hyperline customers-segments update --id <id> --name <name> --description <description>
28353
+ hyperline customers-segments update --id <id> --output json`).action(async (opts) => {
28354
+ const ctx = resource.parent?.opts()._ctx;
28355
+ if (!ctx) {
28356
+ process.stderr.write("Error: Not authenticated\n");
28357
+ process.exit(1);
28358
+ }
28359
+ const args = {};
28360
+ if (opts.id !== void 0)
28361
+ args.id = opts.id;
28362
+ if (opts.name !== void 0)
28363
+ args.name = opts.name;
28364
+ if (opts.description !== void 0)
28365
+ args.description = opts.description;
28366
+ if (opts.rules !== void 0)
28367
+ args.rules = opts.rules;
28368
+ await ctx.execute({
28369
+ method: "PATCH",
28370
+ path: "/v1/customers/segments/{id}",
28371
+ args,
28372
+ queryParamKeys: []
28373
+ });
28374
+ });
28375
+ }
28376
+
28298
28377
  // build/commands/generated/exports.js
28299
28378
  function registerExportsCommands(parent) {
28300
28379
  const resource = parent.command("exports").description("Manage exports");
@@ -32043,6 +32122,7 @@ function registerAllCommands(program2) {
32043
32122
  registerCustomers_Payment_MethodsCommands(program2);
32044
32123
  registerCustomersCommands(program2);
32045
32124
  registerOrganisationsCommands(program2);
32125
+ registerCustomers_SegmentsCommands(program2);
32046
32126
  registerExportsCommands(program2);
32047
32127
  registerFilesCommands(program2);
32048
32128
  registerInvoicesCommands(program2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperline/cli",
3
- "version": "0.1.0-build.1.b1ea190",
3
+ "version": "0.1.0-build.1.bb4dc78",
4
4
  "description": "Agent-first CLI for Hyperline API",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",