@hyperline/cli 0.1.0-build.1.866ec8c → 0.1.0-build.1.870f351
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 +753 -402
- package/package.json +1 -1
|
@@ -34985,10 +34985,10 @@ var require_shared = __commonJS({
|
|
|
34985
34985
|
ZodId: () => ZodId,
|
|
34986
34986
|
ZodTranslationsSchemaFn: () => ZodTranslationsSchemaFn
|
|
34987
34987
|
});
|
|
34988
|
-
var
|
|
34988
|
+
var import_zod24 = require_lib();
|
|
34989
34989
|
var countryIds2 = ["all", ...countries.map(({ id }) => id)];
|
|
34990
|
-
var ZodId =
|
|
34991
|
-
var ZodTranslationsSchemaFn = (schema) =>
|
|
34990
|
+
var ZodId = import_zod24.z.enum(countryIds2);
|
|
34991
|
+
var ZodTranslationsSchemaFn = (schema) => import_zod24.z.record(import_zod24.z.string(), schema.optional());
|
|
34992
34992
|
var UsStates = [
|
|
34993
34993
|
{ id: "AA", name: "Armed Forces Americas" },
|
|
34994
34994
|
{ id: "AE", name: "Armed Forces Europe" },
|
|
@@ -36287,14 +36287,14 @@ var require_shared = __commonJS({
|
|
|
36287
36287
|
ZodNumberCurrencyPositiveValue: () => ZodNumberCurrencyPositiveValue,
|
|
36288
36288
|
ZodNumberCurrencyPositiveValueExcludingZero: () => ZodNumberCurrencyPositiveValueExcludingZero
|
|
36289
36289
|
});
|
|
36290
|
-
var
|
|
36291
|
-
var ZodCurrencyId =
|
|
36290
|
+
var import_zod25 = require_lib();
|
|
36291
|
+
var ZodCurrencyId = import_zod25.z.enum(
|
|
36292
36292
|
all_default.map(({ id }) => id)
|
|
36293
36293
|
);
|
|
36294
|
-
var ZodNumberCurrency =
|
|
36295
|
-
var ZodNumberCurrencyPositiveValue =
|
|
36296
|
-
var ZodNumberCurrencyPositiveValueExcludingZero =
|
|
36297
|
-
var ZodCurrencyMap =
|
|
36294
|
+
var ZodNumberCurrency = import_zod25.z.string().or(import_zod25.z.number().transform((number4) => number4)).transform((number4) => number4);
|
|
36295
|
+
var ZodNumberCurrencyPositiveValue = import_zod25.z.number().min(0).transform((number4) => number4).transform((number4) => number4);
|
|
36296
|
+
var ZodNumberCurrencyPositiveValueExcludingZero = import_zod25.z.number().gt(0).transform((number4) => number4).transform((number4) => number4);
|
|
36297
|
+
var ZodCurrencyMap = import_zod25.z.record(ZodNumberCurrency).refine(
|
|
36298
36298
|
(data) => Object.keys(data).every((key) => ZodCurrencyId.safeParse(key).success),
|
|
36299
36299
|
{
|
|
36300
36300
|
message: "Invalid currency key.",
|
|
@@ -38165,7 +38165,7 @@ Examples:
|
|
|
38165
38165
|
// build/commands/generated/accounting-journal-entries.js
|
|
38166
38166
|
function registerAccounting_Journal_EntriesCommands(parent) {
|
|
38167
38167
|
const resource = parent.command("accounting-journal-entries").description("Manage accounting > journal entries");
|
|
38168
|
-
resource.command("list-journal-entries").description(`List accounting journal entries with optional filters.`).option("--take <number>", `take`).option("--skip <number>", `skip`).option("--entry-number <value>", `Filter by journal entry number.`).option("--status <value>", `Filter by journal entry status.`).option("--origin <value>", `Filter by automatic or manual origin.`).option("--ledger-id <value>", `Filter by ledger identifier.`).option("--invoicing-entity-id <value>", `Filter by invoicing entity identifier.`).option("--invoice-id <value>", `Filter by invoice identifier.`).option("--customer-id <value>", `Filter by customer identifier.`).option("--subscription-id <value>", `Filter by subscription identifier.`).option("--transaction-id <value>", `Filter by transaction identifier.`).option("--ledger-account-id <value>", `Filter entries containing a ledger account.`).option("--rule-id <value>", `Filter entries containing an accounting rule.`).option("--search <value>", `Search entry number, description, customer, or
|
|
38168
|
+
resource.command("list-journal-entries").description(`List accounting journal entries with optional filters.`).option("--take <number>", `take`).option("--skip <number>", `skip`).option("--entry-number <value>", `Filter by journal entry number.`).option("--status <value>", `Filter by journal entry status.`).option("--origin <value>", `Filter by automatic or manual origin.`).option("--ledger-id <value>", `Filter by ledger identifier.`).option("--invoicing-entity-id <value>", `Filter by invoicing entity identifier.`).option("--invoice-id <value>", `Filter by invoice identifier.`).option("--customer-id <value>", `Filter by customer identifier.`).option("--subscription-id <value>", `Filter by subscription identifier.`).option("--transaction-id <value>", `Filter by transaction identifier.`).option("--ledger-account-id <value>", `Filter entries containing a ledger account.`).option("--rule-id <value>", `Filter entries containing an accounting rule.`).option("--search <value>", `Search entry number, description, amount, invoice number or ID, customer name or ID, or subscription ID.`).option("--year <number>", `Filter by entry year.`).option("--quarter <number>", `Filter by entry quarter.`).addHelpText("after", `
|
|
38169
38169
|
Examples:
|
|
38170
38170
|
hyperline accounting-journal-entries list-journal-entries
|
|
38171
38171
|
hyperline accounting-journal-entries list-journal-entries --take <take> --entry-number <entry_number>`).action(async (opts) => {
|
|
@@ -38409,9 +38409,10 @@ Examples:
|
|
|
38409
38409
|
queryParamKeys: ["invoicing_entity_id"]
|
|
38410
38410
|
});
|
|
38411
38411
|
});
|
|
38412
|
-
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", `
|
|
38412
|
+
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.`).option("--fiscal-year-end-month <number>", `Last month of the ledger's fiscal year, from 1 (January) to 12 (December). Reports split profit between past fiscal years and the current one from it. Defaults to 12.`).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", `
|
|
38413
38413
|
Examples:
|
|
38414
38414
|
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
|
|
38415
|
+
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 --fiscal-year-end-month <fiscal_year_end_month>
|
|
38415
38416
|
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 --output json`).action(async (opts) => {
|
|
38416
38417
|
const ctx = resource.parent?.opts()._ctx;
|
|
38417
38418
|
if (!ctx) {
|
|
@@ -38433,6 +38434,8 @@ Examples:
|
|
|
38433
38434
|
args.currency = opts.currency;
|
|
38434
38435
|
if (opts.entryNumberPattern !== void 0)
|
|
38435
38436
|
args.entry_number_pattern = opts.entryNumberPattern;
|
|
38437
|
+
if (opts.fiscalYearEndMonth !== void 0)
|
|
38438
|
+
args.fiscal_year_end_month = Number(opts.fiscalYearEndMonth);
|
|
38436
38439
|
if (opts.isPrimary !== void 0)
|
|
38437
38440
|
args.is_primary = true;
|
|
38438
38441
|
if (opts.isInactive !== void 0)
|
|
@@ -38444,7 +38447,7 @@ Examples:
|
|
|
38444
38447
|
queryParamKeys: []
|
|
38445
38448
|
});
|
|
38446
38449
|
});
|
|
38447
|
-
resource.command("update-ledger").description(`Update an existing accounting ledger.`).requiredOption("--id <value>", `id parameter`).option("--name <value>", `Display name of the ledger.`).option("--code <value>", `Optional accounting code of the ledger.`).option("--description <value>", `Optional description of the ledger.`).option("--type <value>", `Type of ledger.`).option("--currency <value>", `ISO 4217 currency used by the ledger.`).option("--entry-number-pattern <value>", `Entry numbering pattern containing \`{number}\`.`).option("--next-entry-number <number>", `Next sequence number assigned to an entry.`).addHelpText("after", `
|
|
38450
|
+
resource.command("update-ledger").description(`Update an existing accounting ledger.`).requiredOption("--id <value>", `id parameter`).option("--name <value>", `Display name of the ledger.`).option("--code <value>", `Optional accounting code of the ledger.`).option("--description <value>", `Optional description of the ledger.`).option("--type <value>", `Type of ledger.`).option("--currency <value>", `ISO 4217 currency used by the ledger.`).option("--fiscal-year-end-month <number>", `Last month of the ledger's fiscal year, from 1 (January) to 12 (December). Reports split profit between past fiscal years and the current one from it.`).option("--entry-number-pattern <value>", `Entry numbering pattern containing \`{number}\`.`).option("--next-entry-number <number>", `Next sequence number assigned to an entry.`).addHelpText("after", `
|
|
38448
38451
|
Examples:
|
|
38449
38452
|
hyperline accounting-ledgers update-ledger --id <id>
|
|
38450
38453
|
hyperline accounting-ledgers update-ledger --id <id> --name <name> --code <code>
|
|
@@ -38469,6 +38472,8 @@ Examples:
|
|
|
38469
38472
|
args.currency = opts.currency;
|
|
38470
38473
|
if (opts.entryNumberPattern !== void 0)
|
|
38471
38474
|
args.entry_number_pattern = opts.entryNumberPattern;
|
|
38475
|
+
if (opts.fiscalYearEndMonth !== void 0)
|
|
38476
|
+
args.fiscal_year_end_month = Number(opts.fiscalYearEndMonth);
|
|
38472
38477
|
if (opts.nextEntryNumber !== void 0)
|
|
38473
38478
|
args.next_entry_number = Number(opts.nextEntryNumber);
|
|
38474
38479
|
await ctx.execute({
|
|
@@ -38504,6 +38509,94 @@ Examples:
|
|
|
38504
38509
|
queryParamKeys: []
|
|
38505
38510
|
});
|
|
38506
38511
|
});
|
|
38512
|
+
resource.command("get-ledger-close-state").description(`Retrieve the last closed month of a ledger and the latest month that can be closed.`).requiredOption("--id <value>", `id parameter`).addHelpText("after", `
|
|
38513
|
+
Examples:
|
|
38514
|
+
hyperline accounting-ledgers get-ledger-close-state --id <id>`).action(async (opts) => {
|
|
38515
|
+
const ctx = resource.parent?.opts()._ctx;
|
|
38516
|
+
if (!ctx) {
|
|
38517
|
+
process.stderr.write("Error: Not authenticated\n");
|
|
38518
|
+
process.exit(1);
|
|
38519
|
+
}
|
|
38520
|
+
const args = {};
|
|
38521
|
+
if (opts.id !== void 0)
|
|
38522
|
+
args.id = opts.id;
|
|
38523
|
+
await ctx.execute({
|
|
38524
|
+
method: "GET",
|
|
38525
|
+
path: "/v1/accounting/ledgers/{id}/close",
|
|
38526
|
+
args,
|
|
38527
|
+
queryParamKeys: []
|
|
38528
|
+
});
|
|
38529
|
+
});
|
|
38530
|
+
resource.command("list-ledger-close-events").description(`List the closes and reopens of a ledger, newest first, with who did them and why.`).requiredOption("--id <value>", `id parameter`).option("--take <number>", `take`).option("--skip <number>", `skip`).addHelpText("after", `
|
|
38531
|
+
Examples:
|
|
38532
|
+
hyperline accounting-ledgers list-ledger-close-events --id <id>
|
|
38533
|
+
hyperline accounting-ledgers list-ledger-close-events --id <id> --take <take>`).action(async (opts) => {
|
|
38534
|
+
const ctx = resource.parent?.opts()._ctx;
|
|
38535
|
+
if (!ctx) {
|
|
38536
|
+
process.stderr.write("Error: Not authenticated\n");
|
|
38537
|
+
process.exit(1);
|
|
38538
|
+
}
|
|
38539
|
+
const args = {};
|
|
38540
|
+
if (opts.id !== void 0)
|
|
38541
|
+
args.id = opts.id;
|
|
38542
|
+
if (opts.take !== void 0)
|
|
38543
|
+
args.take = Number(opts.take);
|
|
38544
|
+
if (opts.skip !== void 0)
|
|
38545
|
+
args.skip = Number(opts.skip);
|
|
38546
|
+
await ctx.execute({
|
|
38547
|
+
method: "GET",
|
|
38548
|
+
path: "/v1/accounting/ledgers/{id}/close-events",
|
|
38549
|
+
args,
|
|
38550
|
+
queryParamKeys: ["take", "skip"]
|
|
38551
|
+
});
|
|
38552
|
+
});
|
|
38553
|
+
resource.command("close-ledger-period").description(`Close every month of a ledger through an ended month, after posting the revenue recognition due by its end; a user token needs the accounting_close permission.`).requiredOption("--id <value>", `id parameter`).requiredOption("--through-month <value>", `Last month to close, formatted YYYY-MM: an ended month after the last closed month. Every earlier month is closed too.`).option("--reason <value>", `Why the months are closed, 1 to 500 characters.`).addHelpText("after", `
|
|
38554
|
+
Examples:
|
|
38555
|
+
hyperline accounting-ledgers close-ledger-period --id <id> --through-month <through_month>
|
|
38556
|
+
hyperline accounting-ledgers close-ledger-period --id <id> --through-month <through_month> --reason <reason>
|
|
38557
|
+
hyperline accounting-ledgers close-ledger-period --id <id> --through-month <through_month> --output json`).action(async (opts) => {
|
|
38558
|
+
const ctx = resource.parent?.opts()._ctx;
|
|
38559
|
+
if (!ctx) {
|
|
38560
|
+
process.stderr.write("Error: Not authenticated\n");
|
|
38561
|
+
process.exit(1);
|
|
38562
|
+
}
|
|
38563
|
+
const args = {};
|
|
38564
|
+
if (opts.id !== void 0)
|
|
38565
|
+
args.id = opts.id;
|
|
38566
|
+
if (opts.throughMonth !== void 0)
|
|
38567
|
+
args.through_month = opts.throughMonth;
|
|
38568
|
+
if (opts.reason !== void 0)
|
|
38569
|
+
args.reason = opts.reason;
|
|
38570
|
+
await ctx.execute({
|
|
38571
|
+
method: "POST",
|
|
38572
|
+
path: "/v1/accounting/ledgers/{id}/close",
|
|
38573
|
+
args,
|
|
38574
|
+
queryParamKeys: []
|
|
38575
|
+
});
|
|
38576
|
+
});
|
|
38577
|
+
resource.command("reopen-ledger-period").description(`Reopen a closed month of a ledger and every later month, with a mandatory reason; a user token needs the accounting_close permission.`).requiredOption("--id <value>", `id parameter`).requiredOption("--from-month <value>", `First month to reopen, formatted YYYY-MM: a closed month. Every later month is reopened too.`).requiredOption("--reason <value>", `Why the months are reopened, 1 to 500 characters.`).addHelpText("after", `
|
|
38578
|
+
Examples:
|
|
38579
|
+
hyperline accounting-ledgers reopen-ledger-period --id <id> --from-month <from_month> --reason <reason>
|
|
38580
|
+
hyperline accounting-ledgers reopen-ledger-period --id <id> --from-month <from_month> --reason <reason> --output json`).action(async (opts) => {
|
|
38581
|
+
const ctx = resource.parent?.opts()._ctx;
|
|
38582
|
+
if (!ctx) {
|
|
38583
|
+
process.stderr.write("Error: Not authenticated\n");
|
|
38584
|
+
process.exit(1);
|
|
38585
|
+
}
|
|
38586
|
+
const args = {};
|
|
38587
|
+
if (opts.id !== void 0)
|
|
38588
|
+
args.id = opts.id;
|
|
38589
|
+
if (opts.fromMonth !== void 0)
|
|
38590
|
+
args.from_month = opts.fromMonth;
|
|
38591
|
+
if (opts.reason !== void 0)
|
|
38592
|
+
args.reason = opts.reason;
|
|
38593
|
+
await ctx.execute({
|
|
38594
|
+
method: "POST",
|
|
38595
|
+
path: "/v1/accounting/ledgers/{id}/reopen",
|
|
38596
|
+
args,
|
|
38597
|
+
queryParamKeys: []
|
|
38598
|
+
});
|
|
38599
|
+
});
|
|
38507
38600
|
}
|
|
38508
38601
|
|
|
38509
38602
|
// build/commands/generated/accounting-reports.js
|
|
@@ -38864,7 +38957,7 @@ Examples:
|
|
|
38864
38957
|
// build/commands/generated/accounting-rules.js
|
|
38865
38958
|
function registerAccounting_RulesCommands(parent) {
|
|
38866
38959
|
const resource = parent.command("accounting-rules").description("Manage accounting > rules");
|
|
38867
|
-
resource.command("list").description(`Retrieve existing accounting rules with optional filtering.`).option("--take <number>", `take`).option("--skip <number>", `skip`).option("--ledger-id <value>", `ledger_id`).option("--ledger-id.not <value>", `ledger_id__not`).option("--ledger-id.
|
|
38960
|
+
resource.command("list").description(`Retrieve existing accounting rules with optional filtering.`).option("--take <number>", `take`).option("--skip <number>", `skip`).option("--ledger-id <value>", `ledger_id`).option("--ledger-id.not <value>", `ledger_id__not`).option("--ledger-id.equals <value>", `ledger_id__equals`).option("--ledger-id.contains <value>", `ledger_id__contains`).option("--ledger-id.starts-with <value>", `ledger_id__startsWith`).option("--ledger-id.end-with <value>", `ledger_id__endWith`).option("--category <value>", `category`).option("--category.not <value>", `category__not`).option("--category.equals <value>", `category__equals`).option("--category.contains <value>", `category__contains`).option("--category.starts-with <value>", `category__startsWith`).option("--category.end-with <value>", `category__endWith`).addHelpText("after", `
|
|
38868
38961
|
Examples:
|
|
38869
38962
|
hyperline accounting-rules list
|
|
38870
38963
|
hyperline accounting-rules list --take <take> --ledger-id <ledger_id>`).action(async (opts) => {
|
|
@@ -38878,10 +38971,6 @@ Examples:
|
|
|
38878
38971
|
args.ledger_id = opts.ledgerId;
|
|
38879
38972
|
if (opts["ledgerId.not"] !== void 0)
|
|
38880
38973
|
args.ledger_id__not = opts["ledgerId.not"];
|
|
38881
|
-
if (opts["ledgerId.isNull"] !== void 0)
|
|
38882
|
-
args.ledger_id__isNull = opts["ledgerId.isNull"];
|
|
38883
|
-
if (opts["ledgerId.isNotNull"] !== void 0)
|
|
38884
|
-
args.ledger_id__isNotNull = opts["ledgerId.isNotNull"];
|
|
38885
38974
|
if (opts["ledgerId.equals"] !== void 0)
|
|
38886
38975
|
args.ledger_id__equals = opts["ledgerId.equals"];
|
|
38887
38976
|
if (opts["ledgerId.contains"] !== void 0)
|
|
@@ -38894,10 +38983,6 @@ Examples:
|
|
|
38894
38983
|
args.category = opts.category;
|
|
38895
38984
|
if (opts["category.not"] !== void 0)
|
|
38896
38985
|
args.category__not = opts["category.not"];
|
|
38897
|
-
if (opts["category.isNull"] !== void 0)
|
|
38898
|
-
args.category__isNull = opts["category.isNull"];
|
|
38899
|
-
if (opts["category.isNotNull"] !== void 0)
|
|
38900
|
-
args.category__isNotNull = opts["category.isNotNull"];
|
|
38901
38986
|
if (opts["category.equals"] !== void 0)
|
|
38902
38987
|
args.category__equals = opts["category.equals"];
|
|
38903
38988
|
if (opts["category.contains"] !== void 0)
|
|
@@ -38919,16 +39004,12 @@ Examples:
|
|
|
38919
39004
|
"skip",
|
|
38920
39005
|
"ledger_id",
|
|
38921
39006
|
"ledger_id__not",
|
|
38922
|
-
"ledger_id__isNull",
|
|
38923
|
-
"ledger_id__isNotNull",
|
|
38924
39007
|
"ledger_id__equals",
|
|
38925
39008
|
"ledger_id__contains",
|
|
38926
39009
|
"ledger_id__startsWith",
|
|
38927
39010
|
"ledger_id__endWith",
|
|
38928
39011
|
"category",
|
|
38929
39012
|
"category__not",
|
|
38930
|
-
"category__isNull",
|
|
38931
|
-
"category__isNotNull",
|
|
38932
39013
|
"category__equals",
|
|
38933
39014
|
"category__contains",
|
|
38934
39015
|
"category__startsWith",
|
|
@@ -40663,6 +40744,84 @@ Examples:
|
|
|
40663
40744
|
});
|
|
40664
40745
|
}
|
|
40665
40746
|
|
|
40747
|
+
// build/commands/generated/catalog.js
|
|
40748
|
+
function registerCatalogCommands(parent) {
|
|
40749
|
+
const resource = parent.command("catalog").description("Manage catalog");
|
|
40750
|
+
resource.command("list-catalog-versions").description(`List product catalog versions (pending draft and published history). Catalog versioning must be enabled for the organisation.`).addHelpText("after", `
|
|
40751
|
+
Examples:
|
|
40752
|
+
hyperline catalog list-catalog-versions`).action(async (_opts) => {
|
|
40753
|
+
const ctx = resource.parent?.opts()._ctx;
|
|
40754
|
+
if (!ctx) {
|
|
40755
|
+
process.stderr.write("Error: Not authenticated\n");
|
|
40756
|
+
process.exit(1);
|
|
40757
|
+
}
|
|
40758
|
+
const args = {};
|
|
40759
|
+
await ctx.execute({
|
|
40760
|
+
method: "GET",
|
|
40761
|
+
path: "/v1/catalog/versions",
|
|
40762
|
+
args,
|
|
40763
|
+
queryParamKeys: []
|
|
40764
|
+
});
|
|
40765
|
+
});
|
|
40766
|
+
resource.command("get-catalog-draft").description(`Get the pending product catalog draft (null when there is none).`).addHelpText("after", `
|
|
40767
|
+
Examples:
|
|
40768
|
+
hyperline catalog get-catalog-draft`).action(async (_opts) => {
|
|
40769
|
+
const ctx = resource.parent?.opts()._ctx;
|
|
40770
|
+
if (!ctx) {
|
|
40771
|
+
process.stderr.write("Error: Not authenticated\n");
|
|
40772
|
+
process.exit(1);
|
|
40773
|
+
}
|
|
40774
|
+
const args = {};
|
|
40775
|
+
await ctx.execute({
|
|
40776
|
+
method: "GET",
|
|
40777
|
+
path: "/v1/catalog/versions/draft",
|
|
40778
|
+
args,
|
|
40779
|
+
queryParamKeys: []
|
|
40780
|
+
});
|
|
40781
|
+
});
|
|
40782
|
+
resource.command("publish-catalog-draft").description(`Publish the pending product catalog draft: its changes become the live catalog.`).addHelpText("after", `
|
|
40783
|
+
Examples:
|
|
40784
|
+
hyperline catalog publish-catalog-draft
|
|
40785
|
+
hyperline catalog publish-catalog-draft --output json`).action(async (_opts) => {
|
|
40786
|
+
const ctx = resource.parent?.opts()._ctx;
|
|
40787
|
+
if (!ctx) {
|
|
40788
|
+
process.stderr.write("Error: Not authenticated\n");
|
|
40789
|
+
process.exit(1);
|
|
40790
|
+
}
|
|
40791
|
+
const args = {};
|
|
40792
|
+
await ctx.execute({
|
|
40793
|
+
method: "POST",
|
|
40794
|
+
path: "/v1/catalog/versions/draft/publish",
|
|
40795
|
+
args,
|
|
40796
|
+
queryParamKeys: []
|
|
40797
|
+
});
|
|
40798
|
+
});
|
|
40799
|
+
resource.command("discard-catalog-draft").description(`Discard the pending product catalog draft without publishing it.`).option("--yes", "Skip confirmation").addHelpText("after", `
|
|
40800
|
+
Examples:
|
|
40801
|
+
hyperline catalog discard-catalog-draft
|
|
40802
|
+
hyperline catalog discard-catalog-draft --output json`).action(async (opts) => {
|
|
40803
|
+
const ctx = resource.parent?.opts()._ctx;
|
|
40804
|
+
if (!ctx) {
|
|
40805
|
+
process.stderr.write("Error: Not authenticated\n");
|
|
40806
|
+
process.exit(1);
|
|
40807
|
+
}
|
|
40808
|
+
const args = {};
|
|
40809
|
+
if (!opts.yes) {
|
|
40810
|
+
const confirmed = await confirmPrompt("Are you sure? Pass --yes to skip. [y/N] ");
|
|
40811
|
+
if (!confirmed) {
|
|
40812
|
+
process.stdout.write("Aborted.\n");
|
|
40813
|
+
return;
|
|
40814
|
+
}
|
|
40815
|
+
}
|
|
40816
|
+
await ctx.execute({
|
|
40817
|
+
method: "DELETE",
|
|
40818
|
+
path: "/v1/catalog/versions/draft",
|
|
40819
|
+
args,
|
|
40820
|
+
queryParamKeys: []
|
|
40821
|
+
});
|
|
40822
|
+
});
|
|
40823
|
+
}
|
|
40824
|
+
|
|
40666
40825
|
// build/commands/generated/companies.js
|
|
40667
40826
|
function registerCompaniesCommands(parent) {
|
|
40668
40827
|
const resource = parent.command("companies").description("Manage companies");
|
|
@@ -40868,7 +41027,7 @@ Examples:
|
|
|
40868
41027
|
// build/commands/generated/coupons-promotion-codes.js
|
|
40869
41028
|
function registerCoupons_Promotion_CodesCommands(parent) {
|
|
40870
41029
|
const resource = parent.command("coupons-promotion-codes").description("Manage coupons > promotion codes");
|
|
40871
|
-
resource.command("list-promotion-codes").description(`List promotion codes with optional filter by coupon_id. Promotion codes are shareable codes that reference a coupon. Paginated with take/skip.`).option("--take <number>", `take`).option("--skip <number>", `skip`).option("--coupon-id <value>", `coupon_id`).option("--coupon-id.not <value>", `coupon_id__not`).option("--coupon-id.
|
|
41030
|
+
resource.command("list-promotion-codes").description(`List promotion codes with optional filter by coupon_id. Promotion codes are shareable codes that reference a coupon. Paginated with take/skip.`).option("--take <number>", `take`).option("--skip <number>", `skip`).option("--coupon-id <value>", `coupon_id`).option("--coupon-id.not <value>", `coupon_id__not`).option("--coupon-id.equals <value>", `coupon_id__equals`).option("--coupon-id.contains <value>", `coupon_id__contains`).option("--coupon-id.starts-with <value>", `coupon_id__startsWith`).option("--coupon-id.end-with <value>", `coupon_id__endWith`).addHelpText("after", `
|
|
40872
41031
|
Examples:
|
|
40873
41032
|
hyperline coupons-promotion-codes list-promotion-codes
|
|
40874
41033
|
hyperline coupons-promotion-codes list-promotion-codes --take <take> --coupon-id <coupon_id>`).action(async (opts) => {
|
|
@@ -40882,10 +41041,6 @@ Examples:
|
|
|
40882
41041
|
args.coupon_id = opts.couponId;
|
|
40883
41042
|
if (opts["couponId.not"] !== void 0)
|
|
40884
41043
|
args.coupon_id__not = opts["couponId.not"];
|
|
40885
|
-
if (opts["couponId.isNull"] !== void 0)
|
|
40886
|
-
args.coupon_id__isNull = opts["couponId.isNull"];
|
|
40887
|
-
if (opts["couponId.isNotNull"] !== void 0)
|
|
40888
|
-
args.coupon_id__isNotNull = opts["couponId.isNotNull"];
|
|
40889
41044
|
if (opts["couponId.equals"] !== void 0)
|
|
40890
41045
|
args.coupon_id__equals = opts["couponId.equals"];
|
|
40891
41046
|
if (opts["couponId.contains"] !== void 0)
|
|
@@ -40907,8 +41062,6 @@ Examples:
|
|
|
40907
41062
|
"skip",
|
|
40908
41063
|
"coupon_id",
|
|
40909
41064
|
"coupon_id__not",
|
|
40910
|
-
"coupon_id__isNull",
|
|
40911
|
-
"coupon_id__isNotNull",
|
|
40912
41065
|
"coupon_id__equals",
|
|
40913
41066
|
"coupon_id__contains",
|
|
40914
41067
|
"coupon_id__startsWith",
|
|
@@ -41170,7 +41323,7 @@ Verification status of the customer tax ID.
|
|
|
41170
41323
|
- \`mismatch\`: Tax ID is valid but is for a different country than the customer's country.
|
|
41171
41324
|
- \`unverified\`: Tax ID has not been verified yet.
|
|
41172
41325
|
- \`unsupported\`: Tax ID verification for this type not supported yet.
|
|
41173
|
-
`).option("--name <value>", `name`).option("--name.not <value>", `name__not`).option("--name.
|
|
41326
|
+
`).option("--name <value>", `name`).option("--name.not <value>", `name__not`).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.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("--currency.is-null <value>", `currency__isNull`).option("--currency.is-not-null <value>", `currency__isNotNull`).option("--country <value>", `country`).option("--country.not <value>", `country__not`).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("--country.is-null <value>", `country__isNull`).option("--country.is-not-null <value>", `country__isNotNull`).option("--external-id <value>", `external_id`).option("--external-id.not <value>", `external_id__not`).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("--external-id.is-null <value>", `external_id__isNull`).option("--external-id.is-not-null <value>", `external_id__isNotNull`).option("--billing-email <value>", `billing_email`).option("--billing-email.not <value>", `billing_email__not`).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("--billing-email.is-null <value>", `billing_email__isNull`).option("--billing-email.is-not-null <value>", `billing_email__isNotNull`).option("--search <value>", `search`).option("--tax-id <value>", `tax_id`).option("--tax-id.not <value>", `tax_id__not`).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("--tax-id.is-null <value>", `tax_id__isNull`).option("--tax-id.is-not-null <value>", `tax_id__isNotNull`).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.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("--integration-entity-id <value>", `integration_entity_id`).option("--created-at <value>", `created_at`).option("--created-at.not <value>", `created_at__not`).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.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", `
|
|
41174
41327
|
Examples:
|
|
41175
41328
|
hyperline customers list
|
|
41176
41329
|
hyperline customers list --limit <limit> --cursor <cursor>`).action(async (opts) => {
|
|
@@ -41194,10 +41347,6 @@ Examples:
|
|
|
41194
41347
|
args.name = opts.name;
|
|
41195
41348
|
if (opts["name.not"] !== void 0)
|
|
41196
41349
|
args.name__not = opts["name.not"];
|
|
41197
|
-
if (opts["name.isNull"] !== void 0)
|
|
41198
|
-
args.name__isNull = opts["name.isNull"];
|
|
41199
|
-
if (opts["name.isNotNull"] !== void 0)
|
|
41200
|
-
args.name__isNotNull = opts["name.isNotNull"];
|
|
41201
41350
|
if (opts["name.equals"] !== void 0)
|
|
41202
41351
|
args.name__equals = opts["name.equals"];
|
|
41203
41352
|
if (opts["name.contains"] !== void 0)
|
|
@@ -41218,10 +41367,6 @@ Examples:
|
|
|
41218
41367
|
args.currency = opts.currency;
|
|
41219
41368
|
if (opts["currency.not"] !== void 0)
|
|
41220
41369
|
args.currency__not = opts["currency.not"];
|
|
41221
|
-
if (opts["currency.isNull"] !== void 0)
|
|
41222
|
-
args.currency__isNull = opts["currency.isNull"];
|
|
41223
|
-
if (opts["currency.isNotNull"] !== void 0)
|
|
41224
|
-
args.currency__isNotNull = opts["currency.isNotNull"];
|
|
41225
41370
|
if (opts["currency.equals"] !== void 0)
|
|
41226
41371
|
args.currency__equals = opts["currency.equals"];
|
|
41227
41372
|
if (opts["currency.contains"] !== void 0)
|
|
@@ -41230,14 +41375,14 @@ Examples:
|
|
|
41230
41375
|
args.currency__startsWith = opts["currency.startsWith"];
|
|
41231
41376
|
if (opts["currency.endWith"] !== void 0)
|
|
41232
41377
|
args.currency__endWith = opts["currency.endWith"];
|
|
41378
|
+
if (opts["currency.isNull"] !== void 0)
|
|
41379
|
+
args.currency__isNull = opts["currency.isNull"];
|
|
41380
|
+
if (opts["currency.isNotNull"] !== void 0)
|
|
41381
|
+
args.currency__isNotNull = opts["currency.isNotNull"];
|
|
41233
41382
|
if (opts.country !== void 0)
|
|
41234
41383
|
args.country = opts.country;
|
|
41235
41384
|
if (opts["country.not"] !== void 0)
|
|
41236
41385
|
args.country__not = opts["country.not"];
|
|
41237
|
-
if (opts["country.isNull"] !== void 0)
|
|
41238
|
-
args.country__isNull = opts["country.isNull"];
|
|
41239
|
-
if (opts["country.isNotNull"] !== void 0)
|
|
41240
|
-
args.country__isNotNull = opts["country.isNotNull"];
|
|
41241
41386
|
if (opts["country.equals"] !== void 0)
|
|
41242
41387
|
args.country__equals = opts["country.equals"];
|
|
41243
41388
|
if (opts["country.contains"] !== void 0)
|
|
@@ -41246,14 +41391,14 @@ Examples:
|
|
|
41246
41391
|
args.country__startsWith = opts["country.startsWith"];
|
|
41247
41392
|
if (opts["country.endWith"] !== void 0)
|
|
41248
41393
|
args.country__endWith = opts["country.endWith"];
|
|
41394
|
+
if (opts["country.isNull"] !== void 0)
|
|
41395
|
+
args.country__isNull = opts["country.isNull"];
|
|
41396
|
+
if (opts["country.isNotNull"] !== void 0)
|
|
41397
|
+
args.country__isNotNull = opts["country.isNotNull"];
|
|
41249
41398
|
if (opts.externalId !== void 0)
|
|
41250
41399
|
args.external_id = opts.externalId;
|
|
41251
41400
|
if (opts["externalId.not"] !== void 0)
|
|
41252
41401
|
args.external_id__not = opts["externalId.not"];
|
|
41253
|
-
if (opts["externalId.isNull"] !== void 0)
|
|
41254
|
-
args.external_id__isNull = opts["externalId.isNull"];
|
|
41255
|
-
if (opts["externalId.isNotNull"] !== void 0)
|
|
41256
|
-
args.external_id__isNotNull = opts["externalId.isNotNull"];
|
|
41257
41402
|
if (opts["externalId.equals"] !== void 0)
|
|
41258
41403
|
args.external_id__equals = opts["externalId.equals"];
|
|
41259
41404
|
if (opts["externalId.contains"] !== void 0)
|
|
@@ -41262,14 +41407,14 @@ Examples:
|
|
|
41262
41407
|
args.external_id__startsWith = opts["externalId.startsWith"];
|
|
41263
41408
|
if (opts["externalId.endWith"] !== void 0)
|
|
41264
41409
|
args.external_id__endWith = opts["externalId.endWith"];
|
|
41410
|
+
if (opts["externalId.isNull"] !== void 0)
|
|
41411
|
+
args.external_id__isNull = opts["externalId.isNull"];
|
|
41412
|
+
if (opts["externalId.isNotNull"] !== void 0)
|
|
41413
|
+
args.external_id__isNotNull = opts["externalId.isNotNull"];
|
|
41265
41414
|
if (opts.billingEmail !== void 0)
|
|
41266
41415
|
args.billing_email = opts.billingEmail;
|
|
41267
41416
|
if (opts["billingEmail.not"] !== void 0)
|
|
41268
41417
|
args.billing_email__not = opts["billingEmail.not"];
|
|
41269
|
-
if (opts["billingEmail.isNull"] !== void 0)
|
|
41270
|
-
args.billing_email__isNull = opts["billingEmail.isNull"];
|
|
41271
|
-
if (opts["billingEmail.isNotNull"] !== void 0)
|
|
41272
|
-
args.billing_email__isNotNull = opts["billingEmail.isNotNull"];
|
|
41273
41418
|
if (opts["billingEmail.equals"] !== void 0)
|
|
41274
41419
|
args.billing_email__equals = opts["billingEmail.equals"];
|
|
41275
41420
|
if (opts["billingEmail.contains"] !== void 0)
|
|
@@ -41278,16 +41423,16 @@ Examples:
|
|
|
41278
41423
|
args.billing_email__startsWith = opts["billingEmail.startsWith"];
|
|
41279
41424
|
if (opts["billingEmail.endWith"] !== void 0)
|
|
41280
41425
|
args.billing_email__endWith = opts["billingEmail.endWith"];
|
|
41426
|
+
if (opts["billingEmail.isNull"] !== void 0)
|
|
41427
|
+
args.billing_email__isNull = opts["billingEmail.isNull"];
|
|
41428
|
+
if (opts["billingEmail.isNotNull"] !== void 0)
|
|
41429
|
+
args.billing_email__isNotNull = opts["billingEmail.isNotNull"];
|
|
41281
41430
|
if (opts.search !== void 0)
|
|
41282
41431
|
args.search = opts.search;
|
|
41283
41432
|
if (opts.taxId !== void 0)
|
|
41284
41433
|
args.tax_id = opts.taxId;
|
|
41285
41434
|
if (opts["taxId.not"] !== void 0)
|
|
41286
41435
|
args.tax_id__not = opts["taxId.not"];
|
|
41287
|
-
if (opts["taxId.isNull"] !== void 0)
|
|
41288
|
-
args.tax_id__isNull = opts["taxId.isNull"];
|
|
41289
|
-
if (opts["taxId.isNotNull"] !== void 0)
|
|
41290
|
-
args.tax_id__isNotNull = opts["taxId.isNotNull"];
|
|
41291
41436
|
if (opts["taxId.equals"] !== void 0)
|
|
41292
41437
|
args.tax_id__equals = opts["taxId.equals"];
|
|
41293
41438
|
if (opts["taxId.contains"] !== void 0)
|
|
@@ -41296,6 +41441,10 @@ Examples:
|
|
|
41296
41441
|
args.tax_id__startsWith = opts["taxId.startsWith"];
|
|
41297
41442
|
if (opts["taxId.endWith"] !== void 0)
|
|
41298
41443
|
args.tax_id__endWith = opts["taxId.endWith"];
|
|
41444
|
+
if (opts["taxId.isNull"] !== void 0)
|
|
41445
|
+
args.tax_id__isNull = opts["taxId.isNull"];
|
|
41446
|
+
if (opts["taxId.isNotNull"] !== void 0)
|
|
41447
|
+
args.tax_id__isNotNull = opts["taxId.isNotNull"];
|
|
41299
41448
|
if (opts.subscriptionStatus !== void 0)
|
|
41300
41449
|
args.subscription_status = opts.subscriptionStatus;
|
|
41301
41450
|
if (opts["subscriptionStatus.in"] !== void 0)
|
|
@@ -41304,10 +41453,6 @@ Examples:
|
|
|
41304
41453
|
args.invoicing_entity_id = opts.invoicingEntityId;
|
|
41305
41454
|
if (opts["invoicingEntityId.not"] !== void 0)
|
|
41306
41455
|
args.invoicing_entity_id__not = opts["invoicingEntityId.not"];
|
|
41307
|
-
if (opts["invoicingEntityId.isNull"] !== void 0)
|
|
41308
|
-
args.invoicing_entity_id__isNull = opts["invoicingEntityId.isNull"];
|
|
41309
|
-
if (opts["invoicingEntityId.isNotNull"] !== void 0)
|
|
41310
|
-
args.invoicing_entity_id__isNotNull = opts["invoicingEntityId.isNotNull"];
|
|
41311
41456
|
if (opts["invoicingEntityId.equals"] !== void 0)
|
|
41312
41457
|
args.invoicing_entity_id__equals = opts["invoicingEntityId.equals"];
|
|
41313
41458
|
if (opts["invoicingEntityId.contains"] !== void 0)
|
|
@@ -41330,10 +41475,6 @@ Examples:
|
|
|
41330
41475
|
args.created_at = opts.createdAt;
|
|
41331
41476
|
if (opts["createdAt.not"] !== void 0)
|
|
41332
41477
|
args.created_at__not = opts["createdAt.not"];
|
|
41333
|
-
if (opts["createdAt.isNull"] !== void 0)
|
|
41334
|
-
args.created_at__isNull = opts["createdAt.isNull"];
|
|
41335
|
-
if (opts["createdAt.isNotNull"] !== void 0)
|
|
41336
|
-
args.created_at__isNotNull = opts["createdAt.isNotNull"];
|
|
41337
41478
|
if (opts["createdAt.equals"] !== void 0)
|
|
41338
41479
|
args.created_at__equals = opts["createdAt.equals"];
|
|
41339
41480
|
if (opts["createdAt.lt"] !== void 0)
|
|
@@ -41348,10 +41489,6 @@ Examples:
|
|
|
41348
41489
|
args.updated_at = opts.updatedAt;
|
|
41349
41490
|
if (opts["updatedAt.not"] !== void 0)
|
|
41350
41491
|
args.updated_at__not = opts["updatedAt.not"];
|
|
41351
|
-
if (opts["updatedAt.isNull"] !== void 0)
|
|
41352
|
-
args.updated_at__isNull = opts["updatedAt.isNull"];
|
|
41353
|
-
if (opts["updatedAt.isNotNull"] !== void 0)
|
|
41354
|
-
args.updated_at__isNotNull = opts["updatedAt.isNotNull"];
|
|
41355
41492
|
if (opts["updatedAt.equals"] !== void 0)
|
|
41356
41493
|
args.updated_at__equals = opts["updatedAt.equals"];
|
|
41357
41494
|
if (opts["updatedAt.lt"] !== void 0)
|
|
@@ -41377,8 +41514,6 @@ Examples:
|
|
|
41377
41514
|
"tax_id_status",
|
|
41378
41515
|
"name",
|
|
41379
41516
|
"name__not",
|
|
41380
|
-
"name__isNull",
|
|
41381
|
-
"name__isNotNull",
|
|
41382
41517
|
"name__equals",
|
|
41383
41518
|
"name__contains",
|
|
41384
41519
|
"name__startsWith",
|
|
@@ -41389,51 +41524,49 @@ Examples:
|
|
|
41389
41524
|
"status__in",
|
|
41390
41525
|
"currency",
|
|
41391
41526
|
"currency__not",
|
|
41392
|
-
"currency__isNull",
|
|
41393
|
-
"currency__isNotNull",
|
|
41394
41527
|
"currency__equals",
|
|
41395
41528
|
"currency__contains",
|
|
41396
41529
|
"currency__startsWith",
|
|
41397
41530
|
"currency__endWith",
|
|
41531
|
+
"currency__isNull",
|
|
41532
|
+
"currency__isNotNull",
|
|
41398
41533
|
"country",
|
|
41399
41534
|
"country__not",
|
|
41400
|
-
"country__isNull",
|
|
41401
|
-
"country__isNotNull",
|
|
41402
41535
|
"country__equals",
|
|
41403
41536
|
"country__contains",
|
|
41404
41537
|
"country__startsWith",
|
|
41405
41538
|
"country__endWith",
|
|
41539
|
+
"country__isNull",
|
|
41540
|
+
"country__isNotNull",
|
|
41406
41541
|
"external_id",
|
|
41407
41542
|
"external_id__not",
|
|
41408
|
-
"external_id__isNull",
|
|
41409
|
-
"external_id__isNotNull",
|
|
41410
41543
|
"external_id__equals",
|
|
41411
41544
|
"external_id__contains",
|
|
41412
41545
|
"external_id__startsWith",
|
|
41413
41546
|
"external_id__endWith",
|
|
41547
|
+
"external_id__isNull",
|
|
41548
|
+
"external_id__isNotNull",
|
|
41414
41549
|
"billing_email",
|
|
41415
41550
|
"billing_email__not",
|
|
41416
|
-
"billing_email__isNull",
|
|
41417
|
-
"billing_email__isNotNull",
|
|
41418
41551
|
"billing_email__equals",
|
|
41419
41552
|
"billing_email__contains",
|
|
41420
41553
|
"billing_email__startsWith",
|
|
41421
41554
|
"billing_email__endWith",
|
|
41555
|
+
"billing_email__isNull",
|
|
41556
|
+
"billing_email__isNotNull",
|
|
41422
41557
|
"search",
|
|
41423
41558
|
"tax_id",
|
|
41424
41559
|
"tax_id__not",
|
|
41425
|
-
"tax_id__isNull",
|
|
41426
|
-
"tax_id__isNotNull",
|
|
41427
41560
|
"tax_id__equals",
|
|
41428
41561
|
"tax_id__contains",
|
|
41429
41562
|
"tax_id__startsWith",
|
|
41430
41563
|
"tax_id__endWith",
|
|
41564
|
+
"tax_id__isNull",
|
|
41565
|
+
"tax_id__isNotNull",
|
|
41431
41566
|
"subscription_status",
|
|
41432
41567
|
"subscription_status__in",
|
|
41433
41568
|
"invoicing_entity_id",
|
|
41434
41569
|
"invoicing_entity_id__not",
|
|
41435
|
-
"invoicing_entity_id__isNull",
|
|
41436
|
-
"invoicing_entity_id__isNotNull",
|
|
41437
41570
|
"invoicing_entity_id__equals",
|
|
41438
41571
|
"invoicing_entity_id__contains",
|
|
41439
41572
|
"invoicing_entity_id__startsWith",
|
|
@@ -41445,8 +41578,6 @@ Examples:
|
|
|
41445
41578
|
"integration_entity_id",
|
|
41446
41579
|
"created_at",
|
|
41447
41580
|
"created_at__not",
|
|
41448
|
-
"created_at__isNull",
|
|
41449
|
-
"created_at__isNotNull",
|
|
41450
41581
|
"created_at__equals",
|
|
41451
41582
|
"created_at__lt",
|
|
41452
41583
|
"created_at__lte",
|
|
@@ -41454,8 +41585,6 @@ Examples:
|
|
|
41454
41585
|
"created_at__gte",
|
|
41455
41586
|
"updated_at",
|
|
41456
41587
|
"updated_at__not",
|
|
41457
|
-
"updated_at__isNull",
|
|
41458
|
-
"updated_at__isNotNull",
|
|
41459
41588
|
"updated_at__equals",
|
|
41460
41589
|
"updated_at__lt",
|
|
41461
41590
|
"updated_at__lte",
|
|
@@ -42024,7 +42153,7 @@ Examples:
|
|
|
42024
42153
|
// build/commands/generated/customers-credits.js
|
|
42025
42154
|
function registerCustomers_CreditsCommands(parent) {
|
|
42026
42155
|
const resource = parent.command("customers-credits").description("Manage customers > credits");
|
|
42027
|
-
resource.command("list").description(`List credit products across all customers with optional filters for product_id, customer_id, and updated_at. Paginated with take/skip.`).option("--take <number>", `take`).option("--skip <number>", `skip`).option("--product-id <value>", `product_id`).option("--product-id.not <value>", `product_id__not`).option("--product-id.
|
|
42156
|
+
resource.command("list").description(`List credit products across all customers with optional filters for product_id, customer_id, and updated_at. Paginated with take/skip.`).option("--take <number>", `take`).option("--skip <number>", `skip`).option("--product-id <value>", `product_id`).option("--product-id.not <value>", `product_id__not`).option("--product-id.equals <value>", `product_id__equals`).option("--product-id.contains <value>", `product_id__contains`).option("--product-id.starts-with <value>", `product_id__startsWith`).option("--product-id.end-with <value>", `product_id__endWith`).option("--customer-id <value>", `customer_id`).option("--customer-id.not <value>", `customer_id__not`).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("--updated-at <value>", `updated_at`).option("--updated-at.not <value>", `updated_at__not`).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", `
|
|
42028
42157
|
Examples:
|
|
42029
42158
|
hyperline customers-credits list
|
|
42030
42159
|
hyperline customers-credits list --take <take> --product-id <product_id>`).action(async (opts) => {
|
|
@@ -42038,10 +42167,6 @@ Examples:
|
|
|
42038
42167
|
args.product_id = opts.productId;
|
|
42039
42168
|
if (opts["productId.not"] !== void 0)
|
|
42040
42169
|
args.product_id__not = opts["productId.not"];
|
|
42041
|
-
if (opts["productId.isNull"] !== void 0)
|
|
42042
|
-
args.product_id__isNull = opts["productId.isNull"];
|
|
42043
|
-
if (opts["productId.isNotNull"] !== void 0)
|
|
42044
|
-
args.product_id__isNotNull = opts["productId.isNotNull"];
|
|
42045
42170
|
if (opts["productId.equals"] !== void 0)
|
|
42046
42171
|
args.product_id__equals = opts["productId.equals"];
|
|
42047
42172
|
if (opts["productId.contains"] !== void 0)
|
|
@@ -42054,10 +42179,6 @@ Examples:
|
|
|
42054
42179
|
args.customer_id = opts.customerId;
|
|
42055
42180
|
if (opts["customerId.not"] !== void 0)
|
|
42056
42181
|
args.customer_id__not = opts["customerId.not"];
|
|
42057
|
-
if (opts["customerId.isNull"] !== void 0)
|
|
42058
|
-
args.customer_id__isNull = opts["customerId.isNull"];
|
|
42059
|
-
if (opts["customerId.isNotNull"] !== void 0)
|
|
42060
|
-
args.customer_id__isNotNull = opts["customerId.isNotNull"];
|
|
42061
42182
|
if (opts["customerId.equals"] !== void 0)
|
|
42062
42183
|
args.customer_id__equals = opts["customerId.equals"];
|
|
42063
42184
|
if (opts["customerId.contains"] !== void 0)
|
|
@@ -42070,10 +42191,6 @@ Examples:
|
|
|
42070
42191
|
args.updated_at = opts.updatedAt;
|
|
42071
42192
|
if (opts["updatedAt.not"] !== void 0)
|
|
42072
42193
|
args.updated_at__not = opts["updatedAt.not"];
|
|
42073
|
-
if (opts["updatedAt.isNull"] !== void 0)
|
|
42074
|
-
args.updated_at__isNull = opts["updatedAt.isNull"];
|
|
42075
|
-
if (opts["updatedAt.isNotNull"] !== void 0)
|
|
42076
|
-
args.updated_at__isNotNull = opts["updatedAt.isNotNull"];
|
|
42077
42194
|
if (opts["updatedAt.equals"] !== void 0)
|
|
42078
42195
|
args.updated_at__equals = opts["updatedAt.equals"];
|
|
42079
42196
|
if (opts["updatedAt.lt"] !== void 0)
|
|
@@ -42097,24 +42214,18 @@ Examples:
|
|
|
42097
42214
|
"skip",
|
|
42098
42215
|
"product_id",
|
|
42099
42216
|
"product_id__not",
|
|
42100
|
-
"product_id__isNull",
|
|
42101
|
-
"product_id__isNotNull",
|
|
42102
42217
|
"product_id__equals",
|
|
42103
42218
|
"product_id__contains",
|
|
42104
42219
|
"product_id__startsWith",
|
|
42105
42220
|
"product_id__endWith",
|
|
42106
42221
|
"customer_id",
|
|
42107
42222
|
"customer_id__not",
|
|
42108
|
-
"customer_id__isNull",
|
|
42109
|
-
"customer_id__isNotNull",
|
|
42110
42223
|
"customer_id__equals",
|
|
42111
42224
|
"customer_id__contains",
|
|
42112
42225
|
"customer_id__startsWith",
|
|
42113
42226
|
"customer_id__endWith",
|
|
42114
42227
|
"updated_at",
|
|
42115
42228
|
"updated_at__not",
|
|
42116
|
-
"updated_at__isNull",
|
|
42117
|
-
"updated_at__isNotNull",
|
|
42118
42229
|
"updated_at__equals",
|
|
42119
42230
|
"updated_at__lt",
|
|
42120
42231
|
"updated_at__lte",
|
|
@@ -42387,6 +42498,88 @@ Examples:
|
|
|
42387
42498
|
});
|
|
42388
42499
|
}
|
|
42389
42500
|
|
|
42501
|
+
// build/commands/generated/customers-features.js
|
|
42502
|
+
function registerCustomers_FeaturesCommands(parent) {
|
|
42503
|
+
const resource = parent.command("customers-features").description("Manage customers > features");
|
|
42504
|
+
resource.command("resolve-customer-features").description(`Resolve feature values for a customer.`).requiredOption("--id <value>", `id parameter`).option("--at <value>", `Resolution date.`).addHelpText("after", `
|
|
42505
|
+
Examples:
|
|
42506
|
+
hyperline customers-features resolve-customer-features --id <id>
|
|
42507
|
+
hyperline customers-features resolve-customer-features --id <id> --at <at>`).action(async (opts) => {
|
|
42508
|
+
const ctx = resource.parent?.opts()._ctx;
|
|
42509
|
+
if (!ctx) {
|
|
42510
|
+
process.stderr.write("Error: Not authenticated\n");
|
|
42511
|
+
process.exit(1);
|
|
42512
|
+
}
|
|
42513
|
+
const args = {};
|
|
42514
|
+
if (opts.id !== void 0)
|
|
42515
|
+
args.id = opts.id;
|
|
42516
|
+
if (opts.at !== void 0)
|
|
42517
|
+
args.at = opts.at;
|
|
42518
|
+
await ctx.execute({
|
|
42519
|
+
method: "GET",
|
|
42520
|
+
path: "/v1/customers/{id}/features",
|
|
42521
|
+
args,
|
|
42522
|
+
queryParamKeys: ["at"]
|
|
42523
|
+
});
|
|
42524
|
+
});
|
|
42525
|
+
resource.command("set-customer-feature").description(`Set a feature override for a customer.`).requiredOption("--id <value>", `id parameter`).requiredOption("--code <value>", `code parameter`).requiredOption("--value", `Feature value.`).option("--reason <value>", `Reason associated with a customer feature override.`).option("--expires-at <value>", `Expiration date of a customer feature override.`).addHelpText("after", `
|
|
42526
|
+
Examples:
|
|
42527
|
+
hyperline customers-features set-customer-feature --id <id> --code <code> --value
|
|
42528
|
+
hyperline customers-features set-customer-feature --id <id> --code <code> --value --reason <reason> --expires-at <expires_at>
|
|
42529
|
+
hyperline customers-features set-customer-feature --id <id> --code <code> --value --output json`).action(async (opts) => {
|
|
42530
|
+
const ctx = resource.parent?.opts()._ctx;
|
|
42531
|
+
if (!ctx) {
|
|
42532
|
+
process.stderr.write("Error: Not authenticated\n");
|
|
42533
|
+
process.exit(1);
|
|
42534
|
+
}
|
|
42535
|
+
const args = {};
|
|
42536
|
+
if (opts.id !== void 0)
|
|
42537
|
+
args.id = opts.id;
|
|
42538
|
+
if (opts.code !== void 0)
|
|
42539
|
+
args.code = opts.code;
|
|
42540
|
+
if (opts.reason !== void 0)
|
|
42541
|
+
args.reason = opts.reason;
|
|
42542
|
+
if (opts.expiresAt !== void 0)
|
|
42543
|
+
args.expires_at = opts.expiresAt;
|
|
42544
|
+
if (opts.value !== void 0)
|
|
42545
|
+
args.value = true;
|
|
42546
|
+
await ctx.execute({
|
|
42547
|
+
method: "PUT",
|
|
42548
|
+
path: "/v1/customers/{id}/features/{code}",
|
|
42549
|
+
args,
|
|
42550
|
+
queryParamKeys: []
|
|
42551
|
+
});
|
|
42552
|
+
});
|
|
42553
|
+
resource.command("delete-customer-feature").description(`Delete a feature override from a customer.`).requiredOption("--id <value>", `id parameter`).requiredOption("--code <value>", `code parameter`).option("--yes", "Skip confirmation").addHelpText("after", `
|
|
42554
|
+
Examples:
|
|
42555
|
+
hyperline customers-features delete-customer-feature --id <id> --code <code>
|
|
42556
|
+
hyperline customers-features delete-customer-feature --id <id> --code <code> --output json`).action(async (opts) => {
|
|
42557
|
+
const ctx = resource.parent?.opts()._ctx;
|
|
42558
|
+
if (!ctx) {
|
|
42559
|
+
process.stderr.write("Error: Not authenticated\n");
|
|
42560
|
+
process.exit(1);
|
|
42561
|
+
}
|
|
42562
|
+
const args = {};
|
|
42563
|
+
if (opts.id !== void 0)
|
|
42564
|
+
args.id = opts.id;
|
|
42565
|
+
if (opts.code !== void 0)
|
|
42566
|
+
args.code = opts.code;
|
|
42567
|
+
if (!opts.yes) {
|
|
42568
|
+
const confirmed = await confirmPrompt("Are you sure? Pass --yes to skip. [y/N] ");
|
|
42569
|
+
if (!confirmed) {
|
|
42570
|
+
process.stdout.write("Aborted.\n");
|
|
42571
|
+
return;
|
|
42572
|
+
}
|
|
42573
|
+
}
|
|
42574
|
+
await ctx.execute({
|
|
42575
|
+
method: "DELETE",
|
|
42576
|
+
path: "/v1/customers/{id}/features/{code}",
|
|
42577
|
+
args,
|
|
42578
|
+
queryParamKeys: []
|
|
42579
|
+
});
|
|
42580
|
+
});
|
|
42581
|
+
}
|
|
42582
|
+
|
|
42390
42583
|
// build/commands/generated/customers-payment-methods.js
|
|
42391
42584
|
function registerCustomers_Payment_MethodsCommands(parent) {
|
|
42392
42585
|
const resource = parent.command("customers-payment-methods").description("Manage customers > payment methods");
|
|
@@ -42836,6 +43029,222 @@ Examples:
|
|
|
42836
43029
|
});
|
|
42837
43030
|
}
|
|
42838
43031
|
|
|
43032
|
+
// build/commands/generated/features.js
|
|
43033
|
+
function registerFeaturesCommands(parent) {
|
|
43034
|
+
const resource = parent.command("features").description("Manage features");
|
|
43035
|
+
resource.command("list").description(`List feature definitions.`).option("--take <number>", `take`).option("--skip <number>", `skip`).option("--code <value>", `code`).option("--code.not <value>", `code__not`).option("--code.equals <value>", `code__equals`).option("--code.contains <value>", `code__contains`).option("--code.starts-with <value>", `code__startsWith`).option("--code.end-with <value>", `code__endWith`).option("--name <value>", `name`).option("--name.not <value>", `name__not`).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("--status <value>", `status`).option("--status.in <value>", `status__in`).option("--search <value>", `search`).addHelpText("after", `
|
|
43036
|
+
Examples:
|
|
43037
|
+
hyperline features list
|
|
43038
|
+
hyperline features list --take <take> --code <code>`).action(async (opts) => {
|
|
43039
|
+
const ctx = resource.parent?.opts()._ctx;
|
|
43040
|
+
if (!ctx) {
|
|
43041
|
+
process.stderr.write("Error: Not authenticated\n");
|
|
43042
|
+
process.exit(1);
|
|
43043
|
+
}
|
|
43044
|
+
const args = {};
|
|
43045
|
+
if (opts.code !== void 0)
|
|
43046
|
+
args.code = opts.code;
|
|
43047
|
+
if (opts["code.not"] !== void 0)
|
|
43048
|
+
args.code__not = opts["code.not"];
|
|
43049
|
+
if (opts["code.equals"] !== void 0)
|
|
43050
|
+
args.code__equals = opts["code.equals"];
|
|
43051
|
+
if (opts["code.contains"] !== void 0)
|
|
43052
|
+
args.code__contains = opts["code.contains"];
|
|
43053
|
+
if (opts["code.startsWith"] !== void 0)
|
|
43054
|
+
args.code__startsWith = opts["code.startsWith"];
|
|
43055
|
+
if (opts["code.endWith"] !== void 0)
|
|
43056
|
+
args.code__endWith = opts["code.endWith"];
|
|
43057
|
+
if (opts.name !== void 0)
|
|
43058
|
+
args.name = opts.name;
|
|
43059
|
+
if (opts["name.not"] !== void 0)
|
|
43060
|
+
args.name__not = opts["name.not"];
|
|
43061
|
+
if (opts["name.equals"] !== void 0)
|
|
43062
|
+
args.name__equals = opts["name.equals"];
|
|
43063
|
+
if (opts["name.contains"] !== void 0)
|
|
43064
|
+
args.name__contains = opts["name.contains"];
|
|
43065
|
+
if (opts["name.startsWith"] !== void 0)
|
|
43066
|
+
args.name__startsWith = opts["name.startsWith"];
|
|
43067
|
+
if (opts["name.endWith"] !== void 0)
|
|
43068
|
+
args.name__endWith = opts["name.endWith"];
|
|
43069
|
+
if (opts.status !== void 0)
|
|
43070
|
+
args.status = opts.status;
|
|
43071
|
+
if (opts["status.in"] !== void 0)
|
|
43072
|
+
args.status__in = opts["status.in"];
|
|
43073
|
+
if (opts.search !== void 0)
|
|
43074
|
+
args.search = opts.search;
|
|
43075
|
+
if (opts.take !== void 0)
|
|
43076
|
+
args.take = Number(opts.take);
|
|
43077
|
+
if (opts.skip !== void 0)
|
|
43078
|
+
args.skip = Number(opts.skip);
|
|
43079
|
+
await ctx.execute({
|
|
43080
|
+
method: "GET",
|
|
43081
|
+
path: "/v1/features",
|
|
43082
|
+
args,
|
|
43083
|
+
queryParamKeys: [
|
|
43084
|
+
"take",
|
|
43085
|
+
"skip",
|
|
43086
|
+
"code",
|
|
43087
|
+
"code__not",
|
|
43088
|
+
"code__equals",
|
|
43089
|
+
"code__contains",
|
|
43090
|
+
"code__startsWith",
|
|
43091
|
+
"code__endWith",
|
|
43092
|
+
"name",
|
|
43093
|
+
"name__not",
|
|
43094
|
+
"name__equals",
|
|
43095
|
+
"name__contains",
|
|
43096
|
+
"name__startsWith",
|
|
43097
|
+
"name__endWith",
|
|
43098
|
+
"status",
|
|
43099
|
+
"status__in",
|
|
43100
|
+
"search"
|
|
43101
|
+
]
|
|
43102
|
+
});
|
|
43103
|
+
});
|
|
43104
|
+
resource.command("create").description(`Create a feature definition.`).requiredOption("--code <value>", `Feature code.`).requiredOption("--name <value>", `Feature name.`).option("--description <value>", `Feature description.`).requiredOption("--value-type <value>", `Type of feature value.`).requiredOption("--default-value", `Default value used when no product or customer feature value applies. Null means no default.`).option("--resolution-strategy <value>", `Strategy used to combine multiple product feature values for number features.`).addHelpText("after", `
|
|
43105
|
+
Examples:
|
|
43106
|
+
hyperline features create --code <code> --name <name> --value-type <value_type> --default-value
|
|
43107
|
+
hyperline features create --code <code> --name <name> --value-type <value_type> --default-value --description <description> --resolution-strategy <resolution_strategy>
|
|
43108
|
+
hyperline features create --code <code> --name <name> --value-type <value_type> --default-value --output json`).action(async (opts) => {
|
|
43109
|
+
const ctx = resource.parent?.opts()._ctx;
|
|
43110
|
+
if (!ctx) {
|
|
43111
|
+
process.stderr.write("Error: Not authenticated\n");
|
|
43112
|
+
process.exit(1);
|
|
43113
|
+
}
|
|
43114
|
+
const args = {};
|
|
43115
|
+
if (opts.code !== void 0)
|
|
43116
|
+
args.code = opts.code;
|
|
43117
|
+
if (opts.name !== void 0)
|
|
43118
|
+
args.name = opts.name;
|
|
43119
|
+
if (opts.description !== void 0)
|
|
43120
|
+
args.description = opts.description;
|
|
43121
|
+
if (opts.valueType !== void 0)
|
|
43122
|
+
args.value_type = opts.valueType;
|
|
43123
|
+
if (opts.resolutionStrategy !== void 0)
|
|
43124
|
+
args.resolution_strategy = opts.resolutionStrategy;
|
|
43125
|
+
if (opts.defaultValue !== void 0)
|
|
43126
|
+
args.default_value = true;
|
|
43127
|
+
await ctx.execute({
|
|
43128
|
+
method: "POST",
|
|
43129
|
+
path: "/v1/features",
|
|
43130
|
+
args,
|
|
43131
|
+
queryParamKeys: []
|
|
43132
|
+
});
|
|
43133
|
+
});
|
|
43134
|
+
resource.command("get").description(`Retrieve a feature definition.`).requiredOption("--code <value>", `code parameter`).addHelpText("after", `
|
|
43135
|
+
Examples:
|
|
43136
|
+
hyperline features get --code <code>`).action(async (opts) => {
|
|
43137
|
+
const ctx = resource.parent?.opts()._ctx;
|
|
43138
|
+
if (!ctx) {
|
|
43139
|
+
process.stderr.write("Error: Not authenticated\n");
|
|
43140
|
+
process.exit(1);
|
|
43141
|
+
}
|
|
43142
|
+
const args = {};
|
|
43143
|
+
if (opts.code !== void 0)
|
|
43144
|
+
args.code = opts.code;
|
|
43145
|
+
await ctx.execute({
|
|
43146
|
+
method: "GET",
|
|
43147
|
+
path: "/v1/features/{code}",
|
|
43148
|
+
args,
|
|
43149
|
+
queryParamKeys: []
|
|
43150
|
+
});
|
|
43151
|
+
});
|
|
43152
|
+
resource.command("update").description(`Update a feature definition.`).requiredOption("--code <value>", `code parameter`).option("--name <value>", `Feature name.`).option("--description <value>", `Feature description.`).option("--value-type <value>", `value_type`).option("--default-value", `Default value used when no product or customer feature value applies. Null means no default.`).option("--resolution-strategy <value>", `Strategy used to combine multiple product feature values for number features.`).addHelpText("after", `
|
|
43153
|
+
Examples:
|
|
43154
|
+
hyperline features update --code <code>
|
|
43155
|
+
hyperline features update --code <code> --name <name> --description <description>
|
|
43156
|
+
hyperline features update --code <code> --output json`).action(async (opts) => {
|
|
43157
|
+
const ctx = resource.parent?.opts()._ctx;
|
|
43158
|
+
if (!ctx) {
|
|
43159
|
+
process.stderr.write("Error: Not authenticated\n");
|
|
43160
|
+
process.exit(1);
|
|
43161
|
+
}
|
|
43162
|
+
const args = {};
|
|
43163
|
+
if (opts.code !== void 0)
|
|
43164
|
+
args.code = opts.code;
|
|
43165
|
+
if (opts.name !== void 0)
|
|
43166
|
+
args.name = opts.name;
|
|
43167
|
+
if (opts.description !== void 0)
|
|
43168
|
+
args.description = opts.description;
|
|
43169
|
+
if (opts.valueType !== void 0)
|
|
43170
|
+
args.value_type = opts.valueType;
|
|
43171
|
+
if (opts.resolutionStrategy !== void 0)
|
|
43172
|
+
args.resolution_strategy = opts.resolutionStrategy;
|
|
43173
|
+
if (opts.defaultValue !== void 0)
|
|
43174
|
+
args.default_value = true;
|
|
43175
|
+
await ctx.execute({
|
|
43176
|
+
method: "PUT",
|
|
43177
|
+
path: "/v1/features/{code}",
|
|
43178
|
+
args,
|
|
43179
|
+
queryParamKeys: []
|
|
43180
|
+
});
|
|
43181
|
+
});
|
|
43182
|
+
resource.command("archive").description(`Archive a feature definition.`).requiredOption("--code <value>", `code parameter`).addHelpText("after", `
|
|
43183
|
+
Examples:
|
|
43184
|
+
hyperline features archive --code <code>
|
|
43185
|
+
hyperline features archive --code <code> --output json`).action(async (opts) => {
|
|
43186
|
+
const ctx = resource.parent?.opts()._ctx;
|
|
43187
|
+
if (!ctx) {
|
|
43188
|
+
process.stderr.write("Error: Not authenticated\n");
|
|
43189
|
+
process.exit(1);
|
|
43190
|
+
}
|
|
43191
|
+
const args = {};
|
|
43192
|
+
if (opts.code !== void 0)
|
|
43193
|
+
args.code = opts.code;
|
|
43194
|
+
await ctx.execute({
|
|
43195
|
+
method: "PUT",
|
|
43196
|
+
path: "/v1/features/{code}/archive",
|
|
43197
|
+
args,
|
|
43198
|
+
queryParamKeys: []
|
|
43199
|
+
});
|
|
43200
|
+
});
|
|
43201
|
+
resource.command("delete").description(`Delete an archived feature definition that is not in use.`).requiredOption("--code <value>", `code parameter`).option("--yes", "Skip confirmation").addHelpText("after", `
|
|
43202
|
+
Examples:
|
|
43203
|
+
hyperline features delete --code <code>
|
|
43204
|
+
hyperline features delete --code <code> --output json`).action(async (opts) => {
|
|
43205
|
+
const ctx = resource.parent?.opts()._ctx;
|
|
43206
|
+
if (!ctx) {
|
|
43207
|
+
process.stderr.write("Error: Not authenticated\n");
|
|
43208
|
+
process.exit(1);
|
|
43209
|
+
}
|
|
43210
|
+
const args = {};
|
|
43211
|
+
if (opts.code !== void 0)
|
|
43212
|
+
args.code = opts.code;
|
|
43213
|
+
if (!opts.yes) {
|
|
43214
|
+
const confirmed = await confirmPrompt("Are you sure? Pass --yes to skip. [y/N] ");
|
|
43215
|
+
if (!confirmed) {
|
|
43216
|
+
process.stdout.write("Aborted.\n");
|
|
43217
|
+
return;
|
|
43218
|
+
}
|
|
43219
|
+
}
|
|
43220
|
+
await ctx.execute({
|
|
43221
|
+
method: "DELETE",
|
|
43222
|
+
path: "/v1/features/{code}",
|
|
43223
|
+
args,
|
|
43224
|
+
queryParamKeys: []
|
|
43225
|
+
});
|
|
43226
|
+
});
|
|
43227
|
+
resource.command("unarchive").description(`Unarchive a feature definition.`).requiredOption("--code <value>", `code parameter`).addHelpText("after", `
|
|
43228
|
+
Examples:
|
|
43229
|
+
hyperline features unarchive --code <code>
|
|
43230
|
+
hyperline features unarchive --code <code> --output json`).action(async (opts) => {
|
|
43231
|
+
const ctx = resource.parent?.opts()._ctx;
|
|
43232
|
+
if (!ctx) {
|
|
43233
|
+
process.stderr.write("Error: Not authenticated\n");
|
|
43234
|
+
process.exit(1);
|
|
43235
|
+
}
|
|
43236
|
+
const args = {};
|
|
43237
|
+
if (opts.code !== void 0)
|
|
43238
|
+
args.code = opts.code;
|
|
43239
|
+
await ctx.execute({
|
|
43240
|
+
method: "PUT",
|
|
43241
|
+
path: "/v1/features/{code}/unarchive",
|
|
43242
|
+
args,
|
|
43243
|
+
queryParamKeys: []
|
|
43244
|
+
});
|
|
43245
|
+
});
|
|
43246
|
+
}
|
|
43247
|
+
|
|
42839
43248
|
// build/commands/generated/files.js
|
|
42840
43249
|
function registerFilesCommands(parent) {
|
|
42841
43250
|
const resource = parent.command("files").description("Manage files");
|
|
@@ -42857,7 +43266,7 @@ Examples:
|
|
|
42857
43266
|
queryParamKeys: []
|
|
42858
43267
|
});
|
|
42859
43268
|
});
|
|
42860
|
-
resource.command("list").description(`List uploaded files with optional filters for name and customer_id. Paginated with take/skip.`).option("--take <number>", `take`).option("--skip <number>", `skip`).option("--name <value>", `name`).option("--name.not <value>", `name__not`).option("--name.
|
|
43269
|
+
resource.command("list").description(`List uploaded files with optional filters for name and customer_id. Paginated with take/skip.`).option("--take <number>", `take`).option("--skip <number>", `skip`).option("--name <value>", `name`).option("--name.not <value>", `name__not`).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("--customer-id <value>", `customer_id`).option("--customer-id.not <value>", `customer_id__not`).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("--customer-id.is-null <value>", `customer_id__isNull`).option("--customer-id.is-not-null <value>", `customer_id__isNotNull`).addHelpText("after", `
|
|
42861
43270
|
Examples:
|
|
42862
43271
|
hyperline files list
|
|
42863
43272
|
hyperline files list --take <take> --name <name>`).action(async (opts) => {
|
|
@@ -42871,10 +43280,6 @@ Examples:
|
|
|
42871
43280
|
args.name = opts.name;
|
|
42872
43281
|
if (opts["name.not"] !== void 0)
|
|
42873
43282
|
args.name__not = opts["name.not"];
|
|
42874
|
-
if (opts["name.isNull"] !== void 0)
|
|
42875
|
-
args.name__isNull = opts["name.isNull"];
|
|
42876
|
-
if (opts["name.isNotNull"] !== void 0)
|
|
42877
|
-
args.name__isNotNull = opts["name.isNotNull"];
|
|
42878
43283
|
if (opts["name.equals"] !== void 0)
|
|
42879
43284
|
args.name__equals = opts["name.equals"];
|
|
42880
43285
|
if (opts["name.contains"] !== void 0)
|
|
@@ -42887,10 +43292,6 @@ Examples:
|
|
|
42887
43292
|
args.customer_id = opts.customerId;
|
|
42888
43293
|
if (opts["customerId.not"] !== void 0)
|
|
42889
43294
|
args.customer_id__not = opts["customerId.not"];
|
|
42890
|
-
if (opts["customerId.isNull"] !== void 0)
|
|
42891
|
-
args.customer_id__isNull = opts["customerId.isNull"];
|
|
42892
|
-
if (opts["customerId.isNotNull"] !== void 0)
|
|
42893
|
-
args.customer_id__isNotNull = opts["customerId.isNotNull"];
|
|
42894
43295
|
if (opts["customerId.equals"] !== void 0)
|
|
42895
43296
|
args.customer_id__equals = opts["customerId.equals"];
|
|
42896
43297
|
if (opts["customerId.contains"] !== void 0)
|
|
@@ -42899,6 +43300,10 @@ Examples:
|
|
|
42899
43300
|
args.customer_id__startsWith = opts["customerId.startsWith"];
|
|
42900
43301
|
if (opts["customerId.endWith"] !== void 0)
|
|
42901
43302
|
args.customer_id__endWith = opts["customerId.endWith"];
|
|
43303
|
+
if (opts["customerId.isNull"] !== void 0)
|
|
43304
|
+
args.customer_id__isNull = opts["customerId.isNull"];
|
|
43305
|
+
if (opts["customerId.isNotNull"] !== void 0)
|
|
43306
|
+
args.customer_id__isNotNull = opts["customerId.isNotNull"];
|
|
42902
43307
|
if (opts.take !== void 0)
|
|
42903
43308
|
args.take = Number(opts.take);
|
|
42904
43309
|
if (opts.skip !== void 0)
|
|
@@ -42912,20 +43317,18 @@ Examples:
|
|
|
42912
43317
|
"skip",
|
|
42913
43318
|
"name",
|
|
42914
43319
|
"name__not",
|
|
42915
|
-
"name__isNull",
|
|
42916
|
-
"name__isNotNull",
|
|
42917
43320
|
"name__equals",
|
|
42918
43321
|
"name__contains",
|
|
42919
43322
|
"name__startsWith",
|
|
42920
43323
|
"name__endWith",
|
|
42921
43324
|
"customer_id",
|
|
42922
43325
|
"customer_id__not",
|
|
42923
|
-
"customer_id__isNull",
|
|
42924
|
-
"customer_id__isNotNull",
|
|
42925
43326
|
"customer_id__equals",
|
|
42926
43327
|
"customer_id__contains",
|
|
42927
43328
|
"customer_id__startsWith",
|
|
42928
|
-
"customer_id__endWith"
|
|
43329
|
+
"customer_id__endWith",
|
|
43330
|
+
"customer_id__isNull",
|
|
43331
|
+
"customer_id__isNotNull"
|
|
42929
43332
|
]
|
|
42930
43333
|
});
|
|
42931
43334
|
});
|
|
@@ -42981,7 +43384,7 @@ Examples:
|
|
|
42981
43384
|
// build/commands/generated/invoices.js
|
|
42982
43385
|
function registerInvoicesCommands(parent) {
|
|
42983
43386
|
const resource = parent.command("invoices").description("Manage invoices");
|
|
42984
|
-
resource.command("list").description(`List invoices with filters for type, status, customer_id, customer_external_id, subscription_id, invoicing_entity_id, invoice_number, period dates, emission_date, due_date, and updated_at. Sortable by created_at or emitted_at. By default, open invoices are excluded. Paginated with limit/cursor.`).option("--limit <number>", `Maximum number of items to return (1-100).`).option("--cursor <value>", `Opaque cursor returned in the previous response's \`next_cursor\`. Omit to fetch the first page.`).option("--include-total <value>", `Set to \`true\` to include \`total\` in the response.`).option("--order <value>", `Sort direction.`).option("--sort <value>", `Field used to sort the results.`).option("--type <value>", `type`).option("--type.in <value>", `type__in`).option("--status <value>", `status`).option("--status.in <value>", `status__in`).option("--customer-id <value>", `customer_id`).option("--customer-id.not <value>", `customer_id__not`).option("--customer-id.
|
|
43387
|
+
resource.command("list").description(`List invoices with filters for type, status, customer_id, customer_external_id, subscription_id, invoicing_entity_id, invoice_number, period dates, emission_date, due_date, and updated_at. Sortable by created_at or emitted_at. By default, open invoices are excluded. Paginated with limit/cursor.`).option("--limit <number>", `Maximum number of items to return (1-100).`).option("--cursor <value>", `Opaque cursor returned in the previous response's \`next_cursor\`. Omit to fetch the first page.`).option("--include-total <value>", `Set to \`true\` to include \`total\` in the response.`).option("--order <value>", `Sort direction.`).option("--sort <value>", `Field used to sort the results.`).option("--type <value>", `type`).option("--type.in <value>", `type__in`).option("--status <value>", `status`).option("--status.in <value>", `status__in`).option("--customer-id <value>", `customer_id`).option("--customer-id.not <value>", `customer_id__not`).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("--customer-external-id <value>", `customer_external_id`).option("--subscription-id <value>", `subscription_id`).option("--subscription-id.not <value>", `subscription_id__not`).option("--subscription-id.equals <value>", `subscription_id__equals`).option("--subscription-id.contains <value>", `subscription_id__contains`).option("--subscription-id.starts-with <value>", `subscription_id__startsWith`).option("--subscription-id.end-with <value>", `subscription_id__endWith`).option("--subscription-id.is-null <value>", `subscription_id__isNull`).option("--subscription-id.is-not-null <value>", `subscription_id__isNotNull`).option("--invoicing-entity-id <value>", `invoicing_entity_id`).option("--invoicing-entity-id.not <value>", `invoicing_entity_id__not`).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("--invoice-number <value>", `invoice_number`).option("--invoice-number.not <value>", `invoice_number__not`).option("--invoice-number.equals <value>", `invoice_number__equals`).option("--invoice-number.contains <value>", `invoice_number__contains`).option("--invoice-number.starts-with <value>", `invoice_number__startsWith`).option("--invoice-number.end-with <value>", `invoice_number__endWith`).option("--original-invoice-id <value>", `original_invoice_id`).option("--original-invoice-id.not <value>", `original_invoice_id__not`).option("--original-invoice-id.equals <value>", `original_invoice_id__equals`).option("--original-invoice-id.contains <value>", `original_invoice_id__contains`).option("--original-invoice-id.starts-with <value>", `original_invoice_id__startsWith`).option("--original-invoice-id.end-with <value>", `original_invoice_id__endWith`).option("--original-invoice-id.is-null <value>", `original_invoice_id__isNull`).option("--original-invoice-id.is-not-null <value>", `original_invoice_id__isNotNull`).option("--original-invoice-number <value>", `original_invoice_number`).option("--original-invoice-number.not <value>", `original_invoice_number__not`).option("--original-invoice-number.equals <value>", `original_invoice_number__equals`).option("--original-invoice-number.contains <value>", `original_invoice_number__contains`).option("--original-invoice-number.starts-with <value>", `original_invoice_number__startsWith`).option("--original-invoice-number.end-with <value>", `original_invoice_number__endWith`).option("--original-invoice-number.is-null <value>", `original_invoice_number__isNull`).option("--original-invoice-number.is-not-null <value>", `original_invoice_number__isNotNull`).option("--line-item-id <value>", `line_item_id`).option("--period-start <value>", `period_start`).option("--period-start.not <value>", `period_start__not`).option("--period-start.equals <value>", `period_start__equals`).option("--period-start.lt <value>", `period_start__lt`).option("--period-start.lte <value>", `period_start__lte`).option("--period-start.gt <value>", `period_start__gt`).option("--period-start.gte <value>", `period_start__gte`).option("--period-start.is-null <value>", `period_start__isNull`).option("--period-start.is-not-null <value>", `period_start__isNotNull`).option("--period-end <value>", `period_end`).option("--period-end.not <value>", `period_end__not`).option("--period-end.equals <value>", `period_end__equals`).option("--period-end.lt <value>", `period_end__lt`).option("--period-end.lte <value>", `period_end__lte`).option("--period-end.gt <value>", `period_end__gt`).option("--period-end.gte <value>", `period_end__gte`).option("--period-end.is-null <value>", `period_end__isNull`).option("--period-end.is-not-null <value>", `period_end__isNotNull`).option("--issued-at <value>", `issued_at`).option("--issued-at.not <value>", `issued_at__not`).option("--issued-at.equals <value>", `issued_at__equals`).option("--issued-at.lt <value>", `issued_at__lt`).option("--issued-at.lte <value>", `issued_at__lte`).option("--issued-at.gt <value>", `issued_at__gt`).option("--issued-at.gte <value>", `issued_at__gte`).option("--due-at <value>", `due_at`).option("--due-at.not <value>", `due_at__not`).option("--due-at.equals <value>", `due_at__equals`).option("--due-at.lt <value>", `due_at__lt`).option("--due-at.lte <value>", `due_at__lte`).option("--due-at.gt <value>", `due_at__gt`).option("--due-at.gte <value>", `due_at__gte`).option("--updated-at <value>", `updated_at`).option("--updated-at.not <value>", `updated_at__not`).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", `
|
|
42985
43388
|
Examples:
|
|
42986
43389
|
hyperline invoices list
|
|
42987
43390
|
hyperline invoices list --limit <limit> --cursor <cursor>`).action(async (opts) => {
|
|
@@ -43011,10 +43414,6 @@ Examples:
|
|
|
43011
43414
|
args.customer_id = opts.customerId;
|
|
43012
43415
|
if (opts["customerId.not"] !== void 0)
|
|
43013
43416
|
args.customer_id__not = opts["customerId.not"];
|
|
43014
|
-
if (opts["customerId.isNull"] !== void 0)
|
|
43015
|
-
args.customer_id__isNull = opts["customerId.isNull"];
|
|
43016
|
-
if (opts["customerId.isNotNull"] !== void 0)
|
|
43017
|
-
args.customer_id__isNotNull = opts["customerId.isNotNull"];
|
|
43018
43417
|
if (opts["customerId.equals"] !== void 0)
|
|
43019
43418
|
args.customer_id__equals = opts["customerId.equals"];
|
|
43020
43419
|
if (opts["customerId.contains"] !== void 0)
|
|
@@ -43029,10 +43428,6 @@ Examples:
|
|
|
43029
43428
|
args.subscription_id = opts.subscriptionId;
|
|
43030
43429
|
if (opts["subscriptionId.not"] !== void 0)
|
|
43031
43430
|
args.subscription_id__not = opts["subscriptionId.not"];
|
|
43032
|
-
if (opts["subscriptionId.isNull"] !== void 0)
|
|
43033
|
-
args.subscription_id__isNull = opts["subscriptionId.isNull"];
|
|
43034
|
-
if (opts["subscriptionId.isNotNull"] !== void 0)
|
|
43035
|
-
args.subscription_id__isNotNull = opts["subscriptionId.isNotNull"];
|
|
43036
43431
|
if (opts["subscriptionId.equals"] !== void 0)
|
|
43037
43432
|
args.subscription_id__equals = opts["subscriptionId.equals"];
|
|
43038
43433
|
if (opts["subscriptionId.contains"] !== void 0)
|
|
@@ -43041,14 +43436,14 @@ Examples:
|
|
|
43041
43436
|
args.subscription_id__startsWith = opts["subscriptionId.startsWith"];
|
|
43042
43437
|
if (opts["subscriptionId.endWith"] !== void 0)
|
|
43043
43438
|
args.subscription_id__endWith = opts["subscriptionId.endWith"];
|
|
43439
|
+
if (opts["subscriptionId.isNull"] !== void 0)
|
|
43440
|
+
args.subscription_id__isNull = opts["subscriptionId.isNull"];
|
|
43441
|
+
if (opts["subscriptionId.isNotNull"] !== void 0)
|
|
43442
|
+
args.subscription_id__isNotNull = opts["subscriptionId.isNotNull"];
|
|
43044
43443
|
if (opts.invoicingEntityId !== void 0)
|
|
43045
43444
|
args.invoicing_entity_id = opts.invoicingEntityId;
|
|
43046
43445
|
if (opts["invoicingEntityId.not"] !== void 0)
|
|
43047
43446
|
args.invoicing_entity_id__not = opts["invoicingEntityId.not"];
|
|
43048
|
-
if (opts["invoicingEntityId.isNull"] !== void 0)
|
|
43049
|
-
args.invoicing_entity_id__isNull = opts["invoicingEntityId.isNull"];
|
|
43050
|
-
if (opts["invoicingEntityId.isNotNull"] !== void 0)
|
|
43051
|
-
args.invoicing_entity_id__isNotNull = opts["invoicingEntityId.isNotNull"];
|
|
43052
43447
|
if (opts["invoicingEntityId.equals"] !== void 0)
|
|
43053
43448
|
args.invoicing_entity_id__equals = opts["invoicingEntityId.equals"];
|
|
43054
43449
|
if (opts["invoicingEntityId.contains"] !== void 0)
|
|
@@ -43061,10 +43456,6 @@ Examples:
|
|
|
43061
43456
|
args.invoice_number = opts.invoiceNumber;
|
|
43062
43457
|
if (opts["invoiceNumber.not"] !== void 0)
|
|
43063
43458
|
args.invoice_number__not = opts["invoiceNumber.not"];
|
|
43064
|
-
if (opts["invoiceNumber.isNull"] !== void 0)
|
|
43065
|
-
args.invoice_number__isNull = opts["invoiceNumber.isNull"];
|
|
43066
|
-
if (opts["invoiceNumber.isNotNull"] !== void 0)
|
|
43067
|
-
args.invoice_number__isNotNull = opts["invoiceNumber.isNotNull"];
|
|
43068
43459
|
if (opts["invoiceNumber.equals"] !== void 0)
|
|
43069
43460
|
args.invoice_number__equals = opts["invoiceNumber.equals"];
|
|
43070
43461
|
if (opts["invoiceNumber.contains"] !== void 0)
|
|
@@ -43077,10 +43468,6 @@ Examples:
|
|
|
43077
43468
|
args.original_invoice_id = opts.originalInvoiceId;
|
|
43078
43469
|
if (opts["originalInvoiceId.not"] !== void 0)
|
|
43079
43470
|
args.original_invoice_id__not = opts["originalInvoiceId.not"];
|
|
43080
|
-
if (opts["originalInvoiceId.isNull"] !== void 0)
|
|
43081
|
-
args.original_invoice_id__isNull = opts["originalInvoiceId.isNull"];
|
|
43082
|
-
if (opts["originalInvoiceId.isNotNull"] !== void 0)
|
|
43083
|
-
args.original_invoice_id__isNotNull = opts["originalInvoiceId.isNotNull"];
|
|
43084
43471
|
if (opts["originalInvoiceId.equals"] !== void 0)
|
|
43085
43472
|
args.original_invoice_id__equals = opts["originalInvoiceId.equals"];
|
|
43086
43473
|
if (opts["originalInvoiceId.contains"] !== void 0)
|
|
@@ -43089,14 +43476,14 @@ Examples:
|
|
|
43089
43476
|
args.original_invoice_id__startsWith = opts["originalInvoiceId.startsWith"];
|
|
43090
43477
|
if (opts["originalInvoiceId.endWith"] !== void 0)
|
|
43091
43478
|
args.original_invoice_id__endWith = opts["originalInvoiceId.endWith"];
|
|
43479
|
+
if (opts["originalInvoiceId.isNull"] !== void 0)
|
|
43480
|
+
args.original_invoice_id__isNull = opts["originalInvoiceId.isNull"];
|
|
43481
|
+
if (opts["originalInvoiceId.isNotNull"] !== void 0)
|
|
43482
|
+
args.original_invoice_id__isNotNull = opts["originalInvoiceId.isNotNull"];
|
|
43092
43483
|
if (opts.originalInvoiceNumber !== void 0)
|
|
43093
43484
|
args.original_invoice_number = opts.originalInvoiceNumber;
|
|
43094
43485
|
if (opts["originalInvoiceNumber.not"] !== void 0)
|
|
43095
43486
|
args.original_invoice_number__not = opts["originalInvoiceNumber.not"];
|
|
43096
|
-
if (opts["originalInvoiceNumber.isNull"] !== void 0)
|
|
43097
|
-
args.original_invoice_number__isNull = opts["originalInvoiceNumber.isNull"];
|
|
43098
|
-
if (opts["originalInvoiceNumber.isNotNull"] !== void 0)
|
|
43099
|
-
args.original_invoice_number__isNotNull = opts["originalInvoiceNumber.isNotNull"];
|
|
43100
43487
|
if (opts["originalInvoiceNumber.equals"] !== void 0)
|
|
43101
43488
|
args.original_invoice_number__equals = opts["originalInvoiceNumber.equals"];
|
|
43102
43489
|
if (opts["originalInvoiceNumber.contains"] !== void 0)
|
|
@@ -43105,16 +43492,16 @@ Examples:
|
|
|
43105
43492
|
args.original_invoice_number__startsWith = opts["originalInvoiceNumber.startsWith"];
|
|
43106
43493
|
if (opts["originalInvoiceNumber.endWith"] !== void 0)
|
|
43107
43494
|
args.original_invoice_number__endWith = opts["originalInvoiceNumber.endWith"];
|
|
43495
|
+
if (opts["originalInvoiceNumber.isNull"] !== void 0)
|
|
43496
|
+
args.original_invoice_number__isNull = opts["originalInvoiceNumber.isNull"];
|
|
43497
|
+
if (opts["originalInvoiceNumber.isNotNull"] !== void 0)
|
|
43498
|
+
args.original_invoice_number__isNotNull = opts["originalInvoiceNumber.isNotNull"];
|
|
43108
43499
|
if (opts.lineItemId !== void 0)
|
|
43109
43500
|
args.line_item_id = opts.lineItemId;
|
|
43110
43501
|
if (opts.periodStart !== void 0)
|
|
43111
43502
|
args.period_start = opts.periodStart;
|
|
43112
43503
|
if (opts["periodStart.not"] !== void 0)
|
|
43113
43504
|
args.period_start__not = opts["periodStart.not"];
|
|
43114
|
-
if (opts["periodStart.isNull"] !== void 0)
|
|
43115
|
-
args.period_start__isNull = opts["periodStart.isNull"];
|
|
43116
|
-
if (opts["periodStart.isNotNull"] !== void 0)
|
|
43117
|
-
args.period_start__isNotNull = opts["periodStart.isNotNull"];
|
|
43118
43505
|
if (opts["periodStart.equals"] !== void 0)
|
|
43119
43506
|
args.period_start__equals = opts["periodStart.equals"];
|
|
43120
43507
|
if (opts["periodStart.lt"] !== void 0)
|
|
@@ -43125,14 +43512,14 @@ Examples:
|
|
|
43125
43512
|
args.period_start__gt = opts["periodStart.gt"];
|
|
43126
43513
|
if (opts["periodStart.gte"] !== void 0)
|
|
43127
43514
|
args.period_start__gte = opts["periodStart.gte"];
|
|
43515
|
+
if (opts["periodStart.isNull"] !== void 0)
|
|
43516
|
+
args.period_start__isNull = opts["periodStart.isNull"];
|
|
43517
|
+
if (opts["periodStart.isNotNull"] !== void 0)
|
|
43518
|
+
args.period_start__isNotNull = opts["periodStart.isNotNull"];
|
|
43128
43519
|
if (opts.periodEnd !== void 0)
|
|
43129
43520
|
args.period_end = opts.periodEnd;
|
|
43130
43521
|
if (opts["periodEnd.not"] !== void 0)
|
|
43131
43522
|
args.period_end__not = opts["periodEnd.not"];
|
|
43132
|
-
if (opts["periodEnd.isNull"] !== void 0)
|
|
43133
|
-
args.period_end__isNull = opts["periodEnd.isNull"];
|
|
43134
|
-
if (opts["periodEnd.isNotNull"] !== void 0)
|
|
43135
|
-
args.period_end__isNotNull = opts["periodEnd.isNotNull"];
|
|
43136
43523
|
if (opts["periodEnd.equals"] !== void 0)
|
|
43137
43524
|
args.period_end__equals = opts["periodEnd.equals"];
|
|
43138
43525
|
if (opts["periodEnd.lt"] !== void 0)
|
|
@@ -43143,14 +43530,14 @@ Examples:
|
|
|
43143
43530
|
args.period_end__gt = opts["periodEnd.gt"];
|
|
43144
43531
|
if (opts["periodEnd.gte"] !== void 0)
|
|
43145
43532
|
args.period_end__gte = opts["periodEnd.gte"];
|
|
43533
|
+
if (opts["periodEnd.isNull"] !== void 0)
|
|
43534
|
+
args.period_end__isNull = opts["periodEnd.isNull"];
|
|
43535
|
+
if (opts["periodEnd.isNotNull"] !== void 0)
|
|
43536
|
+
args.period_end__isNotNull = opts["periodEnd.isNotNull"];
|
|
43146
43537
|
if (opts.issuedAt !== void 0)
|
|
43147
43538
|
args.issued_at = opts.issuedAt;
|
|
43148
43539
|
if (opts["issuedAt.not"] !== void 0)
|
|
43149
43540
|
args.issued_at__not = opts["issuedAt.not"];
|
|
43150
|
-
if (opts["issuedAt.isNull"] !== void 0)
|
|
43151
|
-
args.issued_at__isNull = opts["issuedAt.isNull"];
|
|
43152
|
-
if (opts["issuedAt.isNotNull"] !== void 0)
|
|
43153
|
-
args.issued_at__isNotNull = opts["issuedAt.isNotNull"];
|
|
43154
43541
|
if (opts["issuedAt.equals"] !== void 0)
|
|
43155
43542
|
args.issued_at__equals = opts["issuedAt.equals"];
|
|
43156
43543
|
if (opts["issuedAt.lt"] !== void 0)
|
|
@@ -43165,10 +43552,6 @@ Examples:
|
|
|
43165
43552
|
args.due_at = opts.dueAt;
|
|
43166
43553
|
if (opts["dueAt.not"] !== void 0)
|
|
43167
43554
|
args.due_at__not = opts["dueAt.not"];
|
|
43168
|
-
if (opts["dueAt.isNull"] !== void 0)
|
|
43169
|
-
args.due_at__isNull = opts["dueAt.isNull"];
|
|
43170
|
-
if (opts["dueAt.isNotNull"] !== void 0)
|
|
43171
|
-
args.due_at__isNotNull = opts["dueAt.isNotNull"];
|
|
43172
43555
|
if (opts["dueAt.equals"] !== void 0)
|
|
43173
43556
|
args.due_at__equals = opts["dueAt.equals"];
|
|
43174
43557
|
if (opts["dueAt.lt"] !== void 0)
|
|
@@ -43183,10 +43566,6 @@ Examples:
|
|
|
43183
43566
|
args.updated_at = opts.updatedAt;
|
|
43184
43567
|
if (opts["updatedAt.not"] !== void 0)
|
|
43185
43568
|
args.updated_at__not = opts["updatedAt.not"];
|
|
43186
|
-
if (opts["updatedAt.isNull"] !== void 0)
|
|
43187
|
-
args.updated_at__isNull = opts["updatedAt.isNull"];
|
|
43188
|
-
if (opts["updatedAt.isNotNull"] !== void 0)
|
|
43189
|
-
args.updated_at__isNotNull = opts["updatedAt.isNotNull"];
|
|
43190
43569
|
if (opts["updatedAt.equals"] !== void 0)
|
|
43191
43570
|
args.updated_at__equals = opts["updatedAt.equals"];
|
|
43192
43571
|
if (opts["updatedAt.lt"] !== void 0)
|
|
@@ -43215,8 +43594,6 @@ Examples:
|
|
|
43215
43594
|
"status__in",
|
|
43216
43595
|
"customer_id",
|
|
43217
43596
|
"customer_id__not",
|
|
43218
|
-
"customer_id__isNull",
|
|
43219
|
-
"customer_id__isNotNull",
|
|
43220
43597
|
"customer_id__equals",
|
|
43221
43598
|
"customer_id__contains",
|
|
43222
43599
|
"customer_id__startsWith",
|
|
@@ -43224,67 +43601,61 @@ Examples:
|
|
|
43224
43601
|
"customer_external_id",
|
|
43225
43602
|
"subscription_id",
|
|
43226
43603
|
"subscription_id__not",
|
|
43227
|
-
"subscription_id__isNull",
|
|
43228
|
-
"subscription_id__isNotNull",
|
|
43229
43604
|
"subscription_id__equals",
|
|
43230
43605
|
"subscription_id__contains",
|
|
43231
43606
|
"subscription_id__startsWith",
|
|
43232
43607
|
"subscription_id__endWith",
|
|
43608
|
+
"subscription_id__isNull",
|
|
43609
|
+
"subscription_id__isNotNull",
|
|
43233
43610
|
"invoicing_entity_id",
|
|
43234
43611
|
"invoicing_entity_id__not",
|
|
43235
|
-
"invoicing_entity_id__isNull",
|
|
43236
|
-
"invoicing_entity_id__isNotNull",
|
|
43237
43612
|
"invoicing_entity_id__equals",
|
|
43238
43613
|
"invoicing_entity_id__contains",
|
|
43239
43614
|
"invoicing_entity_id__startsWith",
|
|
43240
43615
|
"invoicing_entity_id__endWith",
|
|
43241
43616
|
"invoice_number",
|
|
43242
43617
|
"invoice_number__not",
|
|
43243
|
-
"invoice_number__isNull",
|
|
43244
|
-
"invoice_number__isNotNull",
|
|
43245
43618
|
"invoice_number__equals",
|
|
43246
43619
|
"invoice_number__contains",
|
|
43247
43620
|
"invoice_number__startsWith",
|
|
43248
43621
|
"invoice_number__endWith",
|
|
43249
43622
|
"original_invoice_id",
|
|
43250
43623
|
"original_invoice_id__not",
|
|
43251
|
-
"original_invoice_id__isNull",
|
|
43252
|
-
"original_invoice_id__isNotNull",
|
|
43253
43624
|
"original_invoice_id__equals",
|
|
43254
43625
|
"original_invoice_id__contains",
|
|
43255
43626
|
"original_invoice_id__startsWith",
|
|
43256
43627
|
"original_invoice_id__endWith",
|
|
43628
|
+
"original_invoice_id__isNull",
|
|
43629
|
+
"original_invoice_id__isNotNull",
|
|
43257
43630
|
"original_invoice_number",
|
|
43258
43631
|
"original_invoice_number__not",
|
|
43259
|
-
"original_invoice_number__isNull",
|
|
43260
|
-
"original_invoice_number__isNotNull",
|
|
43261
43632
|
"original_invoice_number__equals",
|
|
43262
43633
|
"original_invoice_number__contains",
|
|
43263
43634
|
"original_invoice_number__startsWith",
|
|
43264
43635
|
"original_invoice_number__endWith",
|
|
43636
|
+
"original_invoice_number__isNull",
|
|
43637
|
+
"original_invoice_number__isNotNull",
|
|
43265
43638
|
"line_item_id",
|
|
43266
43639
|
"period_start",
|
|
43267
43640
|
"period_start__not",
|
|
43268
|
-
"period_start__isNull",
|
|
43269
|
-
"period_start__isNotNull",
|
|
43270
43641
|
"period_start__equals",
|
|
43271
43642
|
"period_start__lt",
|
|
43272
43643
|
"period_start__lte",
|
|
43273
43644
|
"period_start__gt",
|
|
43274
43645
|
"period_start__gte",
|
|
43646
|
+
"period_start__isNull",
|
|
43647
|
+
"period_start__isNotNull",
|
|
43275
43648
|
"period_end",
|
|
43276
43649
|
"period_end__not",
|
|
43277
|
-
"period_end__isNull",
|
|
43278
|
-
"period_end__isNotNull",
|
|
43279
43650
|
"period_end__equals",
|
|
43280
43651
|
"period_end__lt",
|
|
43281
43652
|
"period_end__lte",
|
|
43282
43653
|
"period_end__gt",
|
|
43283
43654
|
"period_end__gte",
|
|
43655
|
+
"period_end__isNull",
|
|
43656
|
+
"period_end__isNotNull",
|
|
43284
43657
|
"issued_at",
|
|
43285
43658
|
"issued_at__not",
|
|
43286
|
-
"issued_at__isNull",
|
|
43287
|
-
"issued_at__isNotNull",
|
|
43288
43659
|
"issued_at__equals",
|
|
43289
43660
|
"issued_at__lt",
|
|
43290
43661
|
"issued_at__lte",
|
|
@@ -43292,8 +43663,6 @@ Examples:
|
|
|
43292
43663
|
"issued_at__gte",
|
|
43293
43664
|
"due_at",
|
|
43294
43665
|
"due_at__not",
|
|
43295
|
-
"due_at__isNull",
|
|
43296
|
-
"due_at__isNotNull",
|
|
43297
43666
|
"due_at__equals",
|
|
43298
43667
|
"due_at__lt",
|
|
43299
43668
|
"due_at__lte",
|
|
@@ -43301,8 +43670,6 @@ Examples:
|
|
|
43301
43670
|
"due_at__gte",
|
|
43302
43671
|
"updated_at",
|
|
43303
43672
|
"updated_at__not",
|
|
43304
|
-
"updated_at__isNull",
|
|
43305
|
-
"updated_at__isNotNull",
|
|
43306
43673
|
"updated_at__equals",
|
|
43307
43674
|
"updated_at__lt",
|
|
43308
43675
|
"updated_at__lte",
|
|
@@ -44030,7 +44397,7 @@ Examples:
|
|
|
44030
44397
|
// build/commands/generated/organisations.js
|
|
44031
44398
|
function registerOrganisationsCommands(parent) {
|
|
44032
44399
|
const resource = parent.command("organisations").description("Manage organisations");
|
|
44033
|
-
resource.command("list").description(`Retrieve organisations with their billing details and child customer IDs.`).option("--limit <number>", `Maximum number of items to return (1-100).`).option("--cursor <value>", `Opaque cursor returned in the previous response's \`next_cursor\`. Omit to fetch the first page.`).option("--include-total <value>", `Set to \`true\` to include \`total\` in the response.`).option("--order <value>", `Sort direction.`).option("--sort <value>", `Field used to sort the results.`).option("--created-at <value>", `created_at`).option("--created-at.not <value>", `created_at__not`).option("--created-at.
|
|
44400
|
+
resource.command("list").description(`Retrieve organisations with their billing details and child customer IDs.`).option("--limit <number>", `Maximum number of items to return (1-100).`).option("--cursor <value>", `Opaque cursor returned in the previous response's \`next_cursor\`. Omit to fetch the first page.`).option("--include-total <value>", `Set to \`true\` to include \`total\` in the response.`).option("--order <value>", `Sort direction.`).option("--sort <value>", `Field used to sort the results.`).option("--created-at <value>", `created_at`).option("--created-at.not <value>", `created_at__not`).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.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", `
|
|
44034
44401
|
Examples:
|
|
44035
44402
|
hyperline organisations list
|
|
44036
44403
|
hyperline organisations list --limit <limit> --cursor <cursor>`).action(async (opts) => {
|
|
@@ -44052,10 +44419,6 @@ Examples:
|
|
|
44052
44419
|
args.created_at = opts.createdAt;
|
|
44053
44420
|
if (opts["createdAt.not"] !== void 0)
|
|
44054
44421
|
args.created_at__not = opts["createdAt.not"];
|
|
44055
|
-
if (opts["createdAt.isNull"] !== void 0)
|
|
44056
|
-
args.created_at__isNull = opts["createdAt.isNull"];
|
|
44057
|
-
if (opts["createdAt.isNotNull"] !== void 0)
|
|
44058
|
-
args.created_at__isNotNull = opts["createdAt.isNotNull"];
|
|
44059
44422
|
if (opts["createdAt.equals"] !== void 0)
|
|
44060
44423
|
args.created_at__equals = opts["createdAt.equals"];
|
|
44061
44424
|
if (opts["createdAt.lt"] !== void 0)
|
|
@@ -44070,10 +44433,6 @@ Examples:
|
|
|
44070
44433
|
args.updated_at = opts.updatedAt;
|
|
44071
44434
|
if (opts["updatedAt.not"] !== void 0)
|
|
44072
44435
|
args.updated_at__not = opts["updatedAt.not"];
|
|
44073
|
-
if (opts["updatedAt.isNull"] !== void 0)
|
|
44074
|
-
args.updated_at__isNull = opts["updatedAt.isNull"];
|
|
44075
|
-
if (opts["updatedAt.isNotNull"] !== void 0)
|
|
44076
|
-
args.updated_at__isNotNull = opts["updatedAt.isNotNull"];
|
|
44077
44436
|
if (opts["updatedAt.equals"] !== void 0)
|
|
44078
44437
|
args.updated_at__equals = opts["updatedAt.equals"];
|
|
44079
44438
|
if (opts["updatedAt.lt"] !== void 0)
|
|
@@ -44098,8 +44457,6 @@ Examples:
|
|
|
44098
44457
|
"sort",
|
|
44099
44458
|
"created_at",
|
|
44100
44459
|
"created_at__not",
|
|
44101
|
-
"created_at__isNull",
|
|
44102
|
-
"created_at__isNotNull",
|
|
44103
44460
|
"created_at__equals",
|
|
44104
44461
|
"created_at__lt",
|
|
44105
44462
|
"created_at__lte",
|
|
@@ -44107,8 +44464,6 @@ Examples:
|
|
|
44107
44464
|
"created_at__gte",
|
|
44108
44465
|
"updated_at",
|
|
44109
44466
|
"updated_at__not",
|
|
44110
|
-
"updated_at__isNull",
|
|
44111
|
-
"updated_at__isNotNull",
|
|
44112
44467
|
"updated_at__equals",
|
|
44113
44468
|
"updated_at__lt",
|
|
44114
44469
|
"updated_at__lte",
|
|
@@ -44222,7 +44577,7 @@ Examples:
|
|
|
44222
44577
|
// build/commands/generated/price-configurations.js
|
|
44223
44578
|
function registerPrice_ConfigurationsCommands(parent) {
|
|
44224
44579
|
const resource = parent.command("price-configurations").description("Manage price configurations");
|
|
44225
|
-
resource.command("list").description(`List price configurations with optional filters for product_id and price_book_id. Price configurations define how a product is priced (tiers, volume, graduated, etc.). Paginated with take/skip.`).option("--take <number>", `take`).option("--skip <number>", `skip`).option("--product-id <value>", `product_id`).option("--product-id.not <value>", `product_id__not`).option("--product-id.
|
|
44580
|
+
resource.command("list").description(`List price configurations with optional filters for product_id and price_book_id. Price configurations define how a product is priced (tiers, volume, graduated, etc.). Paginated with take/skip.`).option("--take <number>", `take`).option("--skip <number>", `skip`).option("--product-id <value>", `product_id`).option("--product-id.not <value>", `product_id__not`).option("--product-id.equals <value>", `product_id__equals`).option("--product-id.contains <value>", `product_id__contains`).option("--product-id.starts-with <value>", `product_id__startsWith`).option("--product-id.end-with <value>", `product_id__endWith`).option("--price-book-id <value>", `price_book_id`).option("--price-book-id.not <value>", `price_book_id__not`).option("--price-book-id.equals <value>", `price_book_id__equals`).option("--price-book-id.contains <value>", `price_book_id__contains`).option("--price-book-id.starts-with <value>", `price_book_id__startsWith`).option("--price-book-id.end-with <value>", `price_book_id__endWith`).option("--price-book-id.is-null <value>", `price_book_id__isNull`).option("--price-book-id.is-not-null <value>", `price_book_id__isNotNull`).addHelpText("after", `
|
|
44226
44581
|
Examples:
|
|
44227
44582
|
hyperline price-configurations list
|
|
44228
44583
|
hyperline price-configurations list --take <take> --product-id <product_id>`).action(async (opts) => {
|
|
@@ -44236,10 +44591,6 @@ Examples:
|
|
|
44236
44591
|
args.product_id = opts.productId;
|
|
44237
44592
|
if (opts["productId.not"] !== void 0)
|
|
44238
44593
|
args.product_id__not = opts["productId.not"];
|
|
44239
|
-
if (opts["productId.isNull"] !== void 0)
|
|
44240
|
-
args.product_id__isNull = opts["productId.isNull"];
|
|
44241
|
-
if (opts["productId.isNotNull"] !== void 0)
|
|
44242
|
-
args.product_id__isNotNull = opts["productId.isNotNull"];
|
|
44243
44594
|
if (opts["productId.equals"] !== void 0)
|
|
44244
44595
|
args.product_id__equals = opts["productId.equals"];
|
|
44245
44596
|
if (opts["productId.contains"] !== void 0)
|
|
@@ -44252,10 +44603,6 @@ Examples:
|
|
|
44252
44603
|
args.price_book_id = opts.priceBookId;
|
|
44253
44604
|
if (opts["priceBookId.not"] !== void 0)
|
|
44254
44605
|
args.price_book_id__not = opts["priceBookId.not"];
|
|
44255
|
-
if (opts["priceBookId.isNull"] !== void 0)
|
|
44256
|
-
args.price_book_id__isNull = opts["priceBookId.isNull"];
|
|
44257
|
-
if (opts["priceBookId.isNotNull"] !== void 0)
|
|
44258
|
-
args.price_book_id__isNotNull = opts["priceBookId.isNotNull"];
|
|
44259
44606
|
if (opts["priceBookId.equals"] !== void 0)
|
|
44260
44607
|
args.price_book_id__equals = opts["priceBookId.equals"];
|
|
44261
44608
|
if (opts["priceBookId.contains"] !== void 0)
|
|
@@ -44264,6 +44611,10 @@ Examples:
|
|
|
44264
44611
|
args.price_book_id__startsWith = opts["priceBookId.startsWith"];
|
|
44265
44612
|
if (opts["priceBookId.endWith"] !== void 0)
|
|
44266
44613
|
args.price_book_id__endWith = opts["priceBookId.endWith"];
|
|
44614
|
+
if (opts["priceBookId.isNull"] !== void 0)
|
|
44615
|
+
args.price_book_id__isNull = opts["priceBookId.isNull"];
|
|
44616
|
+
if (opts["priceBookId.isNotNull"] !== void 0)
|
|
44617
|
+
args.price_book_id__isNotNull = opts["priceBookId.isNotNull"];
|
|
44267
44618
|
if (opts.take !== void 0)
|
|
44268
44619
|
args.take = Number(opts.take);
|
|
44269
44620
|
if (opts.skip !== void 0)
|
|
@@ -44277,20 +44628,18 @@ Examples:
|
|
|
44277
44628
|
"skip",
|
|
44278
44629
|
"product_id",
|
|
44279
44630
|
"product_id__not",
|
|
44280
|
-
"product_id__isNull",
|
|
44281
|
-
"product_id__isNotNull",
|
|
44282
44631
|
"product_id__equals",
|
|
44283
44632
|
"product_id__contains",
|
|
44284
44633
|
"product_id__startsWith",
|
|
44285
44634
|
"product_id__endWith",
|
|
44286
44635
|
"price_book_id",
|
|
44287
44636
|
"price_book_id__not",
|
|
44288
|
-
"price_book_id__isNull",
|
|
44289
|
-
"price_book_id__isNotNull",
|
|
44290
44637
|
"price_book_id__equals",
|
|
44291
44638
|
"price_book_id__contains",
|
|
44292
44639
|
"price_book_id__startsWith",
|
|
44293
|
-
"price_book_id__endWith"
|
|
44640
|
+
"price_book_id__endWith",
|
|
44641
|
+
"price_book_id__isNull",
|
|
44642
|
+
"price_book_id__isNotNull"
|
|
44294
44643
|
]
|
|
44295
44644
|
});
|
|
44296
44645
|
});
|
|
@@ -44416,7 +44765,7 @@ Examples:
|
|
|
44416
44765
|
// build/commands/generated/products.js
|
|
44417
44766
|
function registerProductsCommands(parent) {
|
|
44418
44767
|
const resource = parent.command("products").description("Manage products");
|
|
44419
|
-
resource.command("list").description(`List products with optional filters for id, status, name, description, type, and price_book_id. Products define what is being sold (flat fee, per-unit, usage-based, etc.). Paginated with take/skip.`).option("--take <number>", `take`).option("--skip <number>", `skip`).option("--id <value>", `id`).option("--id.not <value>", `id__not`).option("--id.
|
|
44768
|
+
resource.command("list").description(`List products with optional filters for id, status, name, description, type, and price_book_id. Products define what is being sold (flat fee, per-unit, usage-based, etc.). Paginated with take/skip.`).option("--take <number>", `take`).option("--skip <number>", `skip`).option("--id <value>", `id`).option("--id.not <value>", `id__not`).option("--id.equals <value>", `id__equals`).option("--id.contains <value>", `id__contains`).option("--id.starts-with <value>", `id__startsWith`).option("--id.end-with <value>", `id__endWith`).option("--status <value>", `status`).option("--status.in <value>", `status__in`).option("--name <value>", `name`).option("--name.not <value>", `name__not`).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("--description <value>", `description`).option("--description.not <value>", `description__not`).option("--description.equals <value>", `description__equals`).option("--description.contains <value>", `description__contains`).option("--description.starts-with <value>", `description__startsWith`).option("--description.end-with <value>", `description__endWith`).option("--description.is-null <value>", `description__isNull`).option("--description.is-not-null <value>", `description__isNotNull`).option("--type <value>", `type`).option("--type.not <value>", `type__not`).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("--price-book-id <value>", `price_book_id`).addHelpText("after", `
|
|
44420
44769
|
Examples:
|
|
44421
44770
|
hyperline products list
|
|
44422
44771
|
hyperline products list --take <take> --id <id>`).action(async (opts) => {
|
|
@@ -44430,10 +44779,6 @@ Examples:
|
|
|
44430
44779
|
args.id = opts.id;
|
|
44431
44780
|
if (opts["id.not"] !== void 0)
|
|
44432
44781
|
args.id__not = opts["id.not"];
|
|
44433
|
-
if (opts["id.isNull"] !== void 0)
|
|
44434
|
-
args.id__isNull = opts["id.isNull"];
|
|
44435
|
-
if (opts["id.isNotNull"] !== void 0)
|
|
44436
|
-
args.id__isNotNull = opts["id.isNotNull"];
|
|
44437
44782
|
if (opts["id.equals"] !== void 0)
|
|
44438
44783
|
args.id__equals = opts["id.equals"];
|
|
44439
44784
|
if (opts["id.contains"] !== void 0)
|
|
@@ -44450,10 +44795,6 @@ Examples:
|
|
|
44450
44795
|
args.name = opts.name;
|
|
44451
44796
|
if (opts["name.not"] !== void 0)
|
|
44452
44797
|
args.name__not = opts["name.not"];
|
|
44453
|
-
if (opts["name.isNull"] !== void 0)
|
|
44454
|
-
args.name__isNull = opts["name.isNull"];
|
|
44455
|
-
if (opts["name.isNotNull"] !== void 0)
|
|
44456
|
-
args.name__isNotNull = opts["name.isNotNull"];
|
|
44457
44798
|
if (opts["name.equals"] !== void 0)
|
|
44458
44799
|
args.name__equals = opts["name.equals"];
|
|
44459
44800
|
if (opts["name.contains"] !== void 0)
|
|
@@ -44466,10 +44807,6 @@ Examples:
|
|
|
44466
44807
|
args.description = opts.description;
|
|
44467
44808
|
if (opts["description.not"] !== void 0)
|
|
44468
44809
|
args.description__not = opts["description.not"];
|
|
44469
|
-
if (opts["description.isNull"] !== void 0)
|
|
44470
|
-
args.description__isNull = opts["description.isNull"];
|
|
44471
|
-
if (opts["description.isNotNull"] !== void 0)
|
|
44472
|
-
args.description__isNotNull = opts["description.isNotNull"];
|
|
44473
44810
|
if (opts["description.equals"] !== void 0)
|
|
44474
44811
|
args.description__equals = opts["description.equals"];
|
|
44475
44812
|
if (opts["description.contains"] !== void 0)
|
|
@@ -44478,14 +44815,14 @@ Examples:
|
|
|
44478
44815
|
args.description__startsWith = opts["description.startsWith"];
|
|
44479
44816
|
if (opts["description.endWith"] !== void 0)
|
|
44480
44817
|
args.description__endWith = opts["description.endWith"];
|
|
44818
|
+
if (opts["description.isNull"] !== void 0)
|
|
44819
|
+
args.description__isNull = opts["description.isNull"];
|
|
44820
|
+
if (opts["description.isNotNull"] !== void 0)
|
|
44821
|
+
args.description__isNotNull = opts["description.isNotNull"];
|
|
44481
44822
|
if (opts.type !== void 0)
|
|
44482
44823
|
args.type = opts.type;
|
|
44483
44824
|
if (opts["type.not"] !== void 0)
|
|
44484
44825
|
args.type__not = opts["type.not"];
|
|
44485
|
-
if (opts["type.isNull"] !== void 0)
|
|
44486
|
-
args.type__isNull = opts["type.isNull"];
|
|
44487
|
-
if (opts["type.isNotNull"] !== void 0)
|
|
44488
|
-
args.type__isNotNull = opts["type.isNotNull"];
|
|
44489
44826
|
if (opts["type.equals"] !== void 0)
|
|
44490
44827
|
args.type__equals = opts["type.equals"];
|
|
44491
44828
|
if (opts["type.contains"] !== void 0)
|
|
@@ -44509,8 +44846,6 @@ Examples:
|
|
|
44509
44846
|
"skip",
|
|
44510
44847
|
"id",
|
|
44511
44848
|
"id__not",
|
|
44512
|
-
"id__isNull",
|
|
44513
|
-
"id__isNotNull",
|
|
44514
44849
|
"id__equals",
|
|
44515
44850
|
"id__contains",
|
|
44516
44851
|
"id__startsWith",
|
|
@@ -44519,24 +44854,20 @@ Examples:
|
|
|
44519
44854
|
"status__in",
|
|
44520
44855
|
"name",
|
|
44521
44856
|
"name__not",
|
|
44522
|
-
"name__isNull",
|
|
44523
|
-
"name__isNotNull",
|
|
44524
44857
|
"name__equals",
|
|
44525
44858
|
"name__contains",
|
|
44526
44859
|
"name__startsWith",
|
|
44527
44860
|
"name__endWith",
|
|
44528
44861
|
"description",
|
|
44529
44862
|
"description__not",
|
|
44530
|
-
"description__isNull",
|
|
44531
|
-
"description__isNotNull",
|
|
44532
44863
|
"description__equals",
|
|
44533
44864
|
"description__contains",
|
|
44534
44865
|
"description__startsWith",
|
|
44535
44866
|
"description__endWith",
|
|
44867
|
+
"description__isNull",
|
|
44868
|
+
"description__isNotNull",
|
|
44536
44869
|
"type",
|
|
44537
44870
|
"type__not",
|
|
44538
|
-
"type__isNull",
|
|
44539
|
-
"type__isNotNull",
|
|
44540
44871
|
"type__equals",
|
|
44541
44872
|
"type__contains",
|
|
44542
44873
|
"type__startsWith",
|
|
@@ -44545,7 +44876,7 @@ Examples:
|
|
|
44545
44876
|
]
|
|
44546
44877
|
});
|
|
44547
44878
|
});
|
|
44548
|
-
resource.command("create").description(`Create a new product with name, type (flat_fee, per_unit, usage, seat, etc.), and pricing configuration.`).requiredOption("--name <value>", `Product name.`).option("--description <value>", `Product description.`).option("--description-display-interval-dates", `Indicates if the dates of the interval should be automatically added in the product description on the invoices.`).option("--public-description <value>", `Public description of the product.`).option("--translations <json>", `Product name and description translations.`).option("--is-available-on-demand", `is_available_on_demand`).option("--is-available-on-subscription", `is_available_on_subscription`).option("--custom-properties <json>", `A list of key value with the slug of the custom property as the key and the custom property value as value.`).option("--accounting <json>", `Mapping invoicing entity ID/accounting settings.`).requiredOption("--type <value>", `Product type for fixed fee products.`).requiredOption("--price-configurations <json>", `Price configurations for the product.`).option("--aggregator <json>", `Aggregator configuration to automatically count seats from billable events. Only count aggregators are supported for seat products.`).option("--aggregator-id <value>", `ID of an existing aggregator to link to this product.`).option("--unit-name <value>", `Name of the unit (e.g., 'user', 'seat').`).option("--is-connected-seat-item", `When true, the seat count is automatically synced from an external source (e.g., CRM users).`).option("--credit-aggregators <json>", `Multiple aggregators with weights for multi-aggregator credit consumption. Cannot be used together with aggregator or aggregator_id.`).option("--low-credits-threshold <number>", `Threshold indicating a low level of credits.`).option("--credits-grant-mode <value>", `
|
|
44879
|
+
resource.command("create").description(`Create a new product with name, type (flat_fee, per_unit, usage, seat, etc.), and pricing configuration. With catalog versioning enabled, the change is staged in the pending catalog draft and only goes live after publish_catalog_draft.`).requiredOption("--name <value>", `Product name.`).option("--description <value>", `Product description.`).option("--description-display-interval-dates", `Indicates if the dates of the interval should be automatically added in the product description on the invoices.`).option("--public-description <value>", `Public description of the product.`).option("--translations <json>", `Product name and description translations.`).option("--is-available-on-demand", `is_available_on_demand`).option("--is-available-on-subscription", `is_available_on_subscription`).option("--custom-properties <json>", `A list of key value with the slug of the custom property as the key and the custom property value as value.`).option("--accounting <json>", `Mapping invoicing entity ID/accounting settings.`).requiredOption("--type <value>", `Product type for fixed fee products.`).requiredOption("--price-configurations <json>", `Price configurations for the product.`).option("--aggregator <json>", `Aggregator configuration to automatically count seats from billable events. Only count aggregators are supported for seat products.`).option("--aggregator-id <value>", `ID of an existing aggregator to link to this product.`).option("--unit-name <value>", `Name of the unit (e.g., 'user', 'seat').`).option("--is-connected-seat-item", `When true, the seat count is automatically synced from an external source (e.g., CRM users).`).option("--credit-aggregators <json>", `Multiple aggregators with weights for multi-aggregator credit consumption. Cannot be used together with aggregator or aggregator_id.`).option("--low-credits-threshold <number>", `Threshold indicating a low level of credits.`).option("--credits-grant-mode <value>", `
|
|
44549
44880
|
How the periodic credit allowance is granted for partial billing periods.
|
|
44550
44881
|
|
|
44551
44882
|
- \`prorated\` (default): the granted credits are prorated to the elapsed period.
|
|
@@ -44633,7 +44964,7 @@ Examples:
|
|
|
44633
44964
|
queryParamKeys: ["price_book_id"]
|
|
44634
44965
|
});
|
|
44635
44966
|
});
|
|
44636
|
-
resource.command("update").description(`Update a product's name, description, type, or configuration by ID.`).requiredOption("--id <value>", `id parameter`).requiredOption("--name <value>", `Product name.`).option("--description <value>", `Product description.`).option("--public-description <value>", `Public description of the product.`).option("--translations <json>", `Product name and description translations.`).option("--is-available-on-demand", `is_available_on_demand`).option("--is-available-on-subscription", `is_available_on_subscription`).option("--properties <json>", `properties`).option("--custom-properties <json>", `A list of key value with the slug of the custom property as the key and the custom property value as value.`).option("--accounting <json>", `Mapping invoicing entity ID/accounting settings.`).addHelpText("after", `
|
|
44967
|
+
resource.command("update").description(`Update a product's name, description, type, or configuration by ID. With catalog versioning enabled, the change is staged in the pending catalog draft and only goes live after publish_catalog_draft.`).requiredOption("--id <value>", `id parameter`).requiredOption("--name <value>", `Product name.`).option("--description <value>", `Product description.`).option("--public-description <value>", `Public description of the product.`).option("--translations <json>", `Product name and description translations.`).option("--is-available-on-demand", `is_available_on_demand`).option("--is-available-on-subscription", `is_available_on_subscription`).option("--properties <json>", `properties`).option("--custom-properties <json>", `A list of key value with the slug of the custom property as the key and the custom property value as value.`).option("--accounting <json>", `Mapping invoicing entity ID/accounting settings.`).addHelpText("after", `
|
|
44637
44968
|
Examples:
|
|
44638
44969
|
hyperline products update --id <id> --name <name>
|
|
44639
44970
|
hyperline products update --id <id> --name <name> --description <description> --public-description <public_description>
|
|
@@ -44737,6 +45068,80 @@ Examples:
|
|
|
44737
45068
|
});
|
|
44738
45069
|
}
|
|
44739
45070
|
|
|
45071
|
+
// build/commands/generated/products-features.js
|
|
45072
|
+
function registerProducts_FeaturesCommands(parent) {
|
|
45073
|
+
const resource = parent.command("products-features").description("Manage products > features");
|
|
45074
|
+
resource.command("list-product-features").description(`List feature values assigned to a product.`).requiredOption("--id <value>", `id parameter`).addHelpText("after", `
|
|
45075
|
+
Examples:
|
|
45076
|
+
hyperline products-features list-product-features --id <id>`).action(async (opts) => {
|
|
45077
|
+
const ctx = resource.parent?.opts()._ctx;
|
|
45078
|
+
if (!ctx) {
|
|
45079
|
+
process.stderr.write("Error: Not authenticated\n");
|
|
45080
|
+
process.exit(1);
|
|
45081
|
+
}
|
|
45082
|
+
const args = {};
|
|
45083
|
+
if (opts.id !== void 0)
|
|
45084
|
+
args.id = opts.id;
|
|
45085
|
+
await ctx.execute({
|
|
45086
|
+
method: "GET",
|
|
45087
|
+
path: "/v1/products/{id}/features",
|
|
45088
|
+
args,
|
|
45089
|
+
queryParamKeys: []
|
|
45090
|
+
});
|
|
45091
|
+
});
|
|
45092
|
+
resource.command("set-product-feature").description(`Set a feature value for a product.`).requiredOption("--id <value>", `id parameter`).requiredOption("--code <value>", `code parameter`).requiredOption("--value", `Feature value.`).addHelpText("after", `
|
|
45093
|
+
Examples:
|
|
45094
|
+
hyperline products-features set-product-feature --id <id> --code <code> --value
|
|
45095
|
+
hyperline products-features set-product-feature --id <id> --code <code> --value --output json`).action(async (opts) => {
|
|
45096
|
+
const ctx = resource.parent?.opts()._ctx;
|
|
45097
|
+
if (!ctx) {
|
|
45098
|
+
process.stderr.write("Error: Not authenticated\n");
|
|
45099
|
+
process.exit(1);
|
|
45100
|
+
}
|
|
45101
|
+
const args = {};
|
|
45102
|
+
if (opts.id !== void 0)
|
|
45103
|
+
args.id = opts.id;
|
|
45104
|
+
if (opts.code !== void 0)
|
|
45105
|
+
args.code = opts.code;
|
|
45106
|
+
if (opts.value !== void 0)
|
|
45107
|
+
args.value = true;
|
|
45108
|
+
await ctx.execute({
|
|
45109
|
+
method: "PUT",
|
|
45110
|
+
path: "/v1/products/{id}/features/{code}",
|
|
45111
|
+
args,
|
|
45112
|
+
queryParamKeys: []
|
|
45113
|
+
});
|
|
45114
|
+
});
|
|
45115
|
+
resource.command("delete-product-feature").description(`Delete a feature value from a product.`).requiredOption("--id <value>", `id parameter`).requiredOption("--code <value>", `code parameter`).option("--yes", "Skip confirmation").addHelpText("after", `
|
|
45116
|
+
Examples:
|
|
45117
|
+
hyperline products-features delete-product-feature --id <id> --code <code>
|
|
45118
|
+
hyperline products-features delete-product-feature --id <id> --code <code> --output json`).action(async (opts) => {
|
|
45119
|
+
const ctx = resource.parent?.opts()._ctx;
|
|
45120
|
+
if (!ctx) {
|
|
45121
|
+
process.stderr.write("Error: Not authenticated\n");
|
|
45122
|
+
process.exit(1);
|
|
45123
|
+
}
|
|
45124
|
+
const args = {};
|
|
45125
|
+
if (opts.id !== void 0)
|
|
45126
|
+
args.id = opts.id;
|
|
45127
|
+
if (opts.code !== void 0)
|
|
45128
|
+
args.code = opts.code;
|
|
45129
|
+
if (!opts.yes) {
|
|
45130
|
+
const confirmed = await confirmPrompt("Are you sure? Pass --yes to skip. [y/N] ");
|
|
45131
|
+
if (!confirmed) {
|
|
45132
|
+
process.stdout.write("Aborted.\n");
|
|
45133
|
+
return;
|
|
45134
|
+
}
|
|
45135
|
+
}
|
|
45136
|
+
await ctx.execute({
|
|
45137
|
+
method: "DELETE",
|
|
45138
|
+
path: "/v1/products/{id}/features/{code}",
|
|
45139
|
+
args,
|
|
45140
|
+
queryParamKeys: []
|
|
45141
|
+
});
|
|
45142
|
+
});
|
|
45143
|
+
}
|
|
45144
|
+
|
|
44740
45145
|
// build/commands/generated/quotes.js
|
|
44741
45146
|
function registerQuotesCommands(parent) {
|
|
44742
45147
|
const resource = parent.command("quotes").description("Manage quotes");
|
|
@@ -44746,7 +45151,7 @@ Quote status.
|
|
|
44746
45151
|
- \`draft\`: The quote is a draft.
|
|
44747
45152
|
- \`approved\`: The quote is approved and ready to be sent to the customer.
|
|
44748
45153
|
- \`pending_signature\`: The quote is awaiting the customer's signature.
|
|
44749
|
-
`).option("--owner-email <value>", `Email address of the Hyperline user acting as the quote owner. The owner requests approval when the quote is finalized using an API key or finalized during creation. 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("--catalog-version-id <value>", `ID of a published catalog version to price every product of the quote from, instead of the live products catalog. A product's own \`catalog_version_id\` takes precedence, and explicit \`prices\` always win over both.`).option("--comments <value>", `Custom comments displayed on the quote.`).option("--terms <value>", `Custom quotation terms.`).option("--amount <number>", `Estimated contract value. For subscription quotes, defaults to the computed subscription value if not specified. For one-off quotes, this field is ignored \u2014 the amount is always derived from the linked invoice's \`amount_excluding_tax\`.`).option("--contract-value <number>", `What the customer pays over the contract, each coupon counted on the invoices it applies to. Computed from the subscription for \`subscription\` and \`subscription_update\` quotes, unless set manually. Not set on \`one_off\` quotes. When specified, overrides the computed value.`).option("--collect-payment-details <value>", `Collect customer payment method mandate during signature flow or not.`).option("--collect-custom-property-ids <json>", `IDs of the customer custom properties required to be filled during the signature flow.`).option("--contract-clause-ids <json>", `IDs of the contract clauses used in the quote terms.`).option("--require-tax-id <value>", `Require the customer to provide a tax ID during the signature flow.`).option("--display-quote-value <value>", `Display the total quote value on the quote.`).option("--display-quote-value-with-tax <value>", `Display the total quote value including tax on the quote. Only applies to \`one_off\` quotes.`).option("--display-taxes <value>", `Display tax breakdown on the quote.`).option("--display-price-tiers <value>", `Controls which price tiers are displayed on the quote.
|
|
45154
|
+
`).option("--owner-email <value>", `Email address of the Hyperline user acting as the quote owner. The owner requests approval when the quote is finalized using an API key or finalized during creation. 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("--catalog-version-id <value>", `ID of a published catalog version to price every product of the quote from, instead of the live products catalog. A product's own \`catalog_version_id\` takes precedence, and explicit \`prices\` always win over both.`).option("--comments <value>", `Custom comments displayed on the quote.`).option("--terms <value>", `Custom quotation terms.`).option("--amount <number>", `Estimated contract value. When computed, a subscription phase with neither an end date nor a fixed duration is counted over a conventional horizon: the contract's length for a single phase on a contract that has one, otherwise 12 months or the longest billing interval if longer. That horizon is not an end date: the subscription can run past it. Usage-based and connected seat lines are priced at their estimated quantity when it exceeds the committed quantity and, for seats, the live seat count. For subscription quotes, defaults to the computed subscription value if not specified. For one-off quotes, this field is ignored \u2014 the amount is always derived from the linked invoice's \`amount_excluding_tax\`.`).option("--contract-value <number>", `What the customer pays over the contract, each coupon counted on the invoices it applies to. Computed from the subscription for \`subscription\` and \`subscription_update\` quotes, unless set manually. Not set on \`one_off\` quotes. When specified, overrides the computed value.`).option("--collect-payment-details <value>", `Collect customer payment method mandate during signature flow or not.`).option("--collect-custom-property-ids <json>", `IDs of the customer custom properties required to be filled during the signature flow.`).option("--contract-clause-ids <json>", `IDs of the contract clauses used in the quote terms.`).option("--require-tax-id <value>", `Require the customer to provide a tax ID during the signature flow.`).option("--display-quote-value <value>", `Display the total quote value on the quote.`).option("--display-quote-value-with-tax <value>", `Display the total quote value including tax on the quote. Only applies to \`one_off\` quotes.`).option("--display-taxes <value>", `Display tax breakdown on the quote.`).option("--display-price-tiers <value>", `Controls which price tiers are displayed on the quote.
|
|
44750
45155
|
|
|
44751
45156
|
- \`all\`: Display all pricing tiers.
|
|
44752
45157
|
- \`matching\`: Only display the tiers used to compute the price based on quantity.
|
|
@@ -44823,7 +45228,7 @@ Examples:
|
|
|
44823
45228
|
queryParamKeys: []
|
|
44824
45229
|
});
|
|
44825
45230
|
});
|
|
44826
|
-
resource.command("list").description(`List quotes with optional filters for id, number, status, customer_id, template_id, crm_opportunity_id, type, and updated_at. Paginated with take/skip.`).option("--take <number>", `take`).option("--skip <number>", `skip`).option("--id <value>", `id`).option("--id.not <value>", `id__not`).option("--id.
|
|
45231
|
+
resource.command("list").description(`List quotes with optional filters for id, number, status, customer_id, template_id, crm_opportunity_id, type, and updated_at. Paginated with take/skip.`).option("--take <number>", `take`).option("--skip <number>", `skip`).option("--id <value>", `id`).option("--id.not <value>", `id__not`).option("--id.equals <value>", `id__equals`).option("--id.contains <value>", `id__contains`).option("--id.starts-with <value>", `id__startsWith`).option("--id.end-with <value>", `id__endWith`).option("--number <value>", `number`).option("--number.not <value>", `number__not`).option("--number.equals <value>", `number__equals`).option("--number.contains <value>", `number__contains`).option("--number.starts-with <value>", `number__startsWith`).option("--number.end-with <value>", `number__endWith`).option("--status <value>", `status`).option("--status.in <value>", `status__in`).option("--customer-id <value>", `customer_id`).option("--customer-id.not <value>", `customer_id__not`).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("--template-id <value>", `template_id`).option("--template-id.not <value>", `template_id__not`).option("--template-id.equals <value>", `template_id__equals`).option("--template-id.contains <value>", `template_id__contains`).option("--template-id.starts-with <value>", `template_id__startsWith`).option("--template-id.end-with <value>", `template_id__endWith`).option("--template-id.is-null <value>", `template_id__isNull`).option("--template-id.is-not-null <value>", `template_id__isNotNull`).option("--crm-opportunity-id <value>", `crm_opportunity_id`).option("--crm-opportunity-id.not <value>", `crm_opportunity_id__not`).option("--crm-opportunity-id.equals <value>", `crm_opportunity_id__equals`).option("--crm-opportunity-id.contains <value>", `crm_opportunity_id__contains`).option("--crm-opportunity-id.starts-with <value>", `crm_opportunity_id__startsWith`).option("--crm-opportunity-id.end-with <value>", `crm_opportunity_id__endWith`).option("--crm-opportunity-id.is-null <value>", `crm_opportunity_id__isNull`).option("--crm-opportunity-id.is-not-null <value>", `crm_opportunity_id__isNotNull`).option("--type <value>", `type`).option("--updated-at <value>", `updated_at`).option("--updated-at.not <value>", `updated_at__not`).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", `
|
|
44827
45232
|
Examples:
|
|
44828
45233
|
hyperline quotes list
|
|
44829
45234
|
hyperline quotes list --take <take> --id <id>`).action(async (opts) => {
|
|
@@ -44837,10 +45242,6 @@ Examples:
|
|
|
44837
45242
|
args.id = opts.id;
|
|
44838
45243
|
if (opts["id.not"] !== void 0)
|
|
44839
45244
|
args.id__not = opts["id.not"];
|
|
44840
|
-
if (opts["id.isNull"] !== void 0)
|
|
44841
|
-
args.id__isNull = opts["id.isNull"];
|
|
44842
|
-
if (opts["id.isNotNull"] !== void 0)
|
|
44843
|
-
args.id__isNotNull = opts["id.isNotNull"];
|
|
44844
45245
|
if (opts["id.equals"] !== void 0)
|
|
44845
45246
|
args.id__equals = opts["id.equals"];
|
|
44846
45247
|
if (opts["id.contains"] !== void 0)
|
|
@@ -44853,10 +45254,6 @@ Examples:
|
|
|
44853
45254
|
args.number = opts.number;
|
|
44854
45255
|
if (opts["number.not"] !== void 0)
|
|
44855
45256
|
args.number__not = opts["number.not"];
|
|
44856
|
-
if (opts["number.isNull"] !== void 0)
|
|
44857
|
-
args.number__isNull = opts["number.isNull"];
|
|
44858
|
-
if (opts["number.isNotNull"] !== void 0)
|
|
44859
|
-
args.number__isNotNull = opts["number.isNotNull"];
|
|
44860
45257
|
if (opts["number.equals"] !== void 0)
|
|
44861
45258
|
args.number__equals = opts["number.equals"];
|
|
44862
45259
|
if (opts["number.contains"] !== void 0)
|
|
@@ -44873,10 +45270,6 @@ Examples:
|
|
|
44873
45270
|
args.customer_id = opts.customerId;
|
|
44874
45271
|
if (opts["customerId.not"] !== void 0)
|
|
44875
45272
|
args.customer_id__not = opts["customerId.not"];
|
|
44876
|
-
if (opts["customerId.isNull"] !== void 0)
|
|
44877
|
-
args.customer_id__isNull = opts["customerId.isNull"];
|
|
44878
|
-
if (opts["customerId.isNotNull"] !== void 0)
|
|
44879
|
-
args.customer_id__isNotNull = opts["customerId.isNotNull"];
|
|
44880
45273
|
if (opts["customerId.equals"] !== void 0)
|
|
44881
45274
|
args.customer_id__equals = opts["customerId.equals"];
|
|
44882
45275
|
if (opts["customerId.contains"] !== void 0)
|
|
@@ -44889,10 +45282,6 @@ Examples:
|
|
|
44889
45282
|
args.template_id = opts.templateId;
|
|
44890
45283
|
if (opts["templateId.not"] !== void 0)
|
|
44891
45284
|
args.template_id__not = opts["templateId.not"];
|
|
44892
|
-
if (opts["templateId.isNull"] !== void 0)
|
|
44893
|
-
args.template_id__isNull = opts["templateId.isNull"];
|
|
44894
|
-
if (opts["templateId.isNotNull"] !== void 0)
|
|
44895
|
-
args.template_id__isNotNull = opts["templateId.isNotNull"];
|
|
44896
45285
|
if (opts["templateId.equals"] !== void 0)
|
|
44897
45286
|
args.template_id__equals = opts["templateId.equals"];
|
|
44898
45287
|
if (opts["templateId.contains"] !== void 0)
|
|
@@ -44901,14 +45290,14 @@ Examples:
|
|
|
44901
45290
|
args.template_id__startsWith = opts["templateId.startsWith"];
|
|
44902
45291
|
if (opts["templateId.endWith"] !== void 0)
|
|
44903
45292
|
args.template_id__endWith = opts["templateId.endWith"];
|
|
45293
|
+
if (opts["templateId.isNull"] !== void 0)
|
|
45294
|
+
args.template_id__isNull = opts["templateId.isNull"];
|
|
45295
|
+
if (opts["templateId.isNotNull"] !== void 0)
|
|
45296
|
+
args.template_id__isNotNull = opts["templateId.isNotNull"];
|
|
44904
45297
|
if (opts.crmOpportunityId !== void 0)
|
|
44905
45298
|
args.crm_opportunity_id = opts.crmOpportunityId;
|
|
44906
45299
|
if (opts["crmOpportunityId.not"] !== void 0)
|
|
44907
45300
|
args.crm_opportunity_id__not = opts["crmOpportunityId.not"];
|
|
44908
|
-
if (opts["crmOpportunityId.isNull"] !== void 0)
|
|
44909
|
-
args.crm_opportunity_id__isNull = opts["crmOpportunityId.isNull"];
|
|
44910
|
-
if (opts["crmOpportunityId.isNotNull"] !== void 0)
|
|
44911
|
-
args.crm_opportunity_id__isNotNull = opts["crmOpportunityId.isNotNull"];
|
|
44912
45301
|
if (opts["crmOpportunityId.equals"] !== void 0)
|
|
44913
45302
|
args.crm_opportunity_id__equals = opts["crmOpportunityId.equals"];
|
|
44914
45303
|
if (opts["crmOpportunityId.contains"] !== void 0)
|
|
@@ -44917,16 +45306,16 @@ Examples:
|
|
|
44917
45306
|
args.crm_opportunity_id__startsWith = opts["crmOpportunityId.startsWith"];
|
|
44918
45307
|
if (opts["crmOpportunityId.endWith"] !== void 0)
|
|
44919
45308
|
args.crm_opportunity_id__endWith = opts["crmOpportunityId.endWith"];
|
|
45309
|
+
if (opts["crmOpportunityId.isNull"] !== void 0)
|
|
45310
|
+
args.crm_opportunity_id__isNull = opts["crmOpportunityId.isNull"];
|
|
45311
|
+
if (opts["crmOpportunityId.isNotNull"] !== void 0)
|
|
45312
|
+
args.crm_opportunity_id__isNotNull = opts["crmOpportunityId.isNotNull"];
|
|
44920
45313
|
if (opts.type !== void 0)
|
|
44921
45314
|
args.type = opts.type;
|
|
44922
45315
|
if (opts.updatedAt !== void 0)
|
|
44923
45316
|
args.updated_at = opts.updatedAt;
|
|
44924
45317
|
if (opts["updatedAt.not"] !== void 0)
|
|
44925
45318
|
args.updated_at__not = opts["updatedAt.not"];
|
|
44926
|
-
if (opts["updatedAt.isNull"] !== void 0)
|
|
44927
|
-
args.updated_at__isNull = opts["updatedAt.isNull"];
|
|
44928
|
-
if (opts["updatedAt.isNotNull"] !== void 0)
|
|
44929
|
-
args.updated_at__isNotNull = opts["updatedAt.isNotNull"];
|
|
44930
45319
|
if (opts["updatedAt.equals"] !== void 0)
|
|
44931
45320
|
args.updated_at__equals = opts["updatedAt.equals"];
|
|
44932
45321
|
if (opts["updatedAt.lt"] !== void 0)
|
|
@@ -44950,16 +45339,12 @@ Examples:
|
|
|
44950
45339
|
"skip",
|
|
44951
45340
|
"id",
|
|
44952
45341
|
"id__not",
|
|
44953
|
-
"id__isNull",
|
|
44954
|
-
"id__isNotNull",
|
|
44955
45342
|
"id__equals",
|
|
44956
45343
|
"id__contains",
|
|
44957
45344
|
"id__startsWith",
|
|
44958
45345
|
"id__endWith",
|
|
44959
45346
|
"number",
|
|
44960
45347
|
"number__not",
|
|
44961
|
-
"number__isNull",
|
|
44962
|
-
"number__isNotNull",
|
|
44963
45348
|
"number__equals",
|
|
44964
45349
|
"number__contains",
|
|
44965
45350
|
"number__startsWith",
|
|
@@ -44968,33 +45353,29 @@ Examples:
|
|
|
44968
45353
|
"status__in",
|
|
44969
45354
|
"customer_id",
|
|
44970
45355
|
"customer_id__not",
|
|
44971
|
-
"customer_id__isNull",
|
|
44972
|
-
"customer_id__isNotNull",
|
|
44973
45356
|
"customer_id__equals",
|
|
44974
45357
|
"customer_id__contains",
|
|
44975
45358
|
"customer_id__startsWith",
|
|
44976
45359
|
"customer_id__endWith",
|
|
44977
45360
|
"template_id",
|
|
44978
45361
|
"template_id__not",
|
|
44979
|
-
"template_id__isNull",
|
|
44980
|
-
"template_id__isNotNull",
|
|
44981
45362
|
"template_id__equals",
|
|
44982
45363
|
"template_id__contains",
|
|
44983
45364
|
"template_id__startsWith",
|
|
44984
45365
|
"template_id__endWith",
|
|
45366
|
+
"template_id__isNull",
|
|
45367
|
+
"template_id__isNotNull",
|
|
44985
45368
|
"crm_opportunity_id",
|
|
44986
45369
|
"crm_opportunity_id__not",
|
|
44987
|
-
"crm_opportunity_id__isNull",
|
|
44988
|
-
"crm_opportunity_id__isNotNull",
|
|
44989
45370
|
"crm_opportunity_id__equals",
|
|
44990
45371
|
"crm_opportunity_id__contains",
|
|
44991
45372
|
"crm_opportunity_id__startsWith",
|
|
44992
45373
|
"crm_opportunity_id__endWith",
|
|
45374
|
+
"crm_opportunity_id__isNull",
|
|
45375
|
+
"crm_opportunity_id__isNotNull",
|
|
44993
45376
|
"type",
|
|
44994
45377
|
"updated_at",
|
|
44995
45378
|
"updated_at__not",
|
|
44996
|
-
"updated_at__isNull",
|
|
44997
|
-
"updated_at__isNotNull",
|
|
44998
45379
|
"updated_at__equals",
|
|
44999
45380
|
"updated_at__lt",
|
|
45000
45381
|
"updated_at__lte",
|
|
@@ -45021,7 +45402,7 @@ Examples:
|
|
|
45021
45402
|
queryParamKeys: []
|
|
45022
45403
|
});
|
|
45023
45404
|
});
|
|
45024
|
-
resource.command("update").description(`Update quote-level fields before a quote is finalized. On draft quotes, pass \`subscription\` inline \u2014 the full configuration, not a reference to an existing subscription \u2014 to create or replace the draft subscription configuration, or pass \`invoice\` on a one-off quote to replace the linked draft invoice. For quotes created from \`template_id\`, use this tool for subscription overrides such as dates, contract terms, products, phases, coupons, discounts, prices, seats, and subscription custom properties. Omit \`terms\`, \`comments\`, and \`contract_clause_ids\` unless deliberately overriding template content. Discover product and price configuration IDs with \`get_catalog_context\`.`).requiredOption("--id <value>", `id parameter`).option("--owner-email <value>", `Email address of the Hyperline user acting as the quote owner. The owner requests approval when the quote is finalized using an API key or finalized during creation.`).option("--catalog-version-id <value>", `ID of a published catalog version to price every product of the quote from, instead of the live products catalog. A product's own \`catalog_version_id\` takes precedence, and explicit \`prices\` always win over both.`).option("--comments <value>", `Custom comments displayed on the quote.`).option("--terms <value>", `Custom quotation terms.`).option("--amount <number>", `Estimated contract value. Set to \`null\` to clear the manually set value.`).option("--contract-value <number>", `What the customer pays over the contract, each coupon counted on the invoices it applies to. Computed from the subscription for \`subscription\` and \`subscription_update\` quotes, unless set manually. Not set on \`one_off\` quotes. When specified, overrides the computed value. Set to \`null\` to go back to the computed value.`).option("--collect-payment-details <value>", `Collect customer payment method mandate during signature flow or not.`).option("--collect-custom-property-ids <json>", `IDs of the customer custom properties required to be filled during the signature flow.`).option("--contract-clause-ids <json>", `IDs of the contract clauses used in the quote terms.`).option("--require-tax-id <value>", `Require the customer to provide a tax ID during the signature flow.`).option("--display-quote-value <value>", `Display the total quote value on the quote.`).option("--display-quote-value-with-tax <value>", `Display the total quote value including tax on the quote. Only applies to \`one_off\` quotes.`).option("--display-taxes <value>", `Display tax breakdown on the quote.`).option("--display-price-tiers <value>", `Controls which price tiers are displayed on the quote.
|
|
45405
|
+
resource.command("update").description(`Update quote-level fields before a quote is finalized. On draft quotes, pass \`subscription\` inline \u2014 the full configuration, not a reference to an existing subscription \u2014 to create or replace the draft subscription configuration, or pass \`invoice\` on a one-off quote to replace the linked draft invoice. For quotes created from \`template_id\`, use this tool for subscription overrides such as dates, contract terms, products, phases, coupons, discounts, prices, seats, and subscription custom properties. Omit \`terms\`, \`comments\`, and \`contract_clause_ids\` unless deliberately overriding template content. Discover product and price configuration IDs with \`get_catalog_context\`.`).requiredOption("--id <value>", `id parameter`).option("--owner-email <value>", `Email address of the Hyperline user acting as the quote owner. The owner requests approval when the quote is finalized using an API key or finalized during creation.`).option("--catalog-version-id <value>", `ID of a published catalog version to price every product of the quote from, instead of the live products catalog. A product's own \`catalog_version_id\` takes precedence, and explicit \`prices\` always win over both.`).option("--comments <value>", `Custom comments displayed on the quote.`).option("--terms <value>", `Custom quotation terms.`).option("--amount <number>", `Estimated contract value. When computed, a subscription phase with neither an end date nor a fixed duration is counted over a conventional horizon: the contract's length for a single phase on a contract that has one, otherwise 12 months or the longest billing interval if longer. That horizon is not an end date: the subscription can run past it. Usage-based and connected seat lines are priced at their estimated quantity when it exceeds the committed quantity and, for seats, the live seat count. Set to \`null\` to clear the manually set value.`).option("--contract-value <number>", `What the customer pays over the contract, each coupon counted on the invoices it applies to. Computed from the subscription for \`subscription\` and \`subscription_update\` quotes, unless set manually. Not set on \`one_off\` quotes. When specified, overrides the computed value. Set to \`null\` to go back to the computed value.`).option("--collect-payment-details <value>", `Collect customer payment method mandate during signature flow or not.`).option("--collect-custom-property-ids <json>", `IDs of the customer custom properties required to be filled during the signature flow.`).option("--contract-clause-ids <json>", `IDs of the contract clauses used in the quote terms.`).option("--require-tax-id <value>", `Require the customer to provide a tax ID during the signature flow.`).option("--display-quote-value <value>", `Display the total quote value on the quote.`).option("--display-quote-value-with-tax <value>", `Display the total quote value including tax on the quote. Only applies to \`one_off\` quotes.`).option("--display-taxes <value>", `Display tax breakdown on the quote.`).option("--display-price-tiers <value>", `Controls which price tiers are displayed on the quote.
|
|
45025
45406
|
|
|
45026
45407
|
- \`all\`: Display all pricing tiers.
|
|
45027
45408
|
- \`matching\`: Only display the tiers used to compute the price based on quantity.
|
|
@@ -45372,7 +45753,7 @@ Examples:
|
|
|
45372
45753
|
// build/commands/generated/quotes-templates.js
|
|
45373
45754
|
function registerQuotes_TemplatesCommands(parent) {
|
|
45374
45755
|
const resource = parent.command("quotes-templates").description("Manage quotes > templates");
|
|
45375
|
-
resource.command("list-quote-templates").description(`List quote templates with pagination and optional filters for id, name, subscription_template_id, and search. Use template IDs to create quotes from reusable quote defaults.`).option("--take <number>", `take`).option("--skip <number>", `skip`).option("--id <value>", `id`).option("--id.not <value>", `id__not`).option("--id.
|
|
45756
|
+
resource.command("list-quote-templates").description(`List quote templates with pagination and optional filters for id, name, subscription_template_id, and search. Use template IDs to create quotes from reusable quote defaults.`).option("--take <number>", `take`).option("--skip <number>", `skip`).option("--id <value>", `id`).option("--id.not <value>", `id__not`).option("--id.equals <value>", `id__equals`).option("--id.contains <value>", `id__contains`).option("--id.starts-with <value>", `id__startsWith`).option("--id.end-with <value>", `id__endWith`).option("--name <value>", `name`).option("--name.not <value>", `name__not`).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("--subscription-template-id <value>", `subscription_template_id`).option("--subscription-template-id.not <value>", `subscription_template_id__not`).option("--subscription-template-id.equals <value>", `subscription_template_id__equals`).option("--subscription-template-id.contains <value>", `subscription_template_id__contains`).option("--subscription-template-id.starts-with <value>", `subscription_template_id__startsWith`).option("--subscription-template-id.end-with <value>", `subscription_template_id__endWith`).option("--subscription-template-id.is-null <value>", `subscription_template_id__isNull`).option("--subscription-template-id.is-not-null <value>", `subscription_template_id__isNotNull`).option("--search <value>", `search`).addHelpText("after", `
|
|
45376
45757
|
Examples:
|
|
45377
45758
|
hyperline quotes-templates list-quote-templates
|
|
45378
45759
|
hyperline quotes-templates list-quote-templates --take <take> --id <id>`).action(async (opts) => {
|
|
@@ -45386,10 +45767,6 @@ Examples:
|
|
|
45386
45767
|
args.id = opts.id;
|
|
45387
45768
|
if (opts["id.not"] !== void 0)
|
|
45388
45769
|
args.id__not = opts["id.not"];
|
|
45389
|
-
if (opts["id.isNull"] !== void 0)
|
|
45390
|
-
args.id__isNull = opts["id.isNull"];
|
|
45391
|
-
if (opts["id.isNotNull"] !== void 0)
|
|
45392
|
-
args.id__isNotNull = opts["id.isNotNull"];
|
|
45393
45770
|
if (opts["id.equals"] !== void 0)
|
|
45394
45771
|
args.id__equals = opts["id.equals"];
|
|
45395
45772
|
if (opts["id.contains"] !== void 0)
|
|
@@ -45402,10 +45779,6 @@ Examples:
|
|
|
45402
45779
|
args.name = opts.name;
|
|
45403
45780
|
if (opts["name.not"] !== void 0)
|
|
45404
45781
|
args.name__not = opts["name.not"];
|
|
45405
|
-
if (opts["name.isNull"] !== void 0)
|
|
45406
|
-
args.name__isNull = opts["name.isNull"];
|
|
45407
|
-
if (opts["name.isNotNull"] !== void 0)
|
|
45408
|
-
args.name__isNotNull = opts["name.isNotNull"];
|
|
45409
45782
|
if (opts["name.equals"] !== void 0)
|
|
45410
45783
|
args.name__equals = opts["name.equals"];
|
|
45411
45784
|
if (opts["name.contains"] !== void 0)
|
|
@@ -45418,10 +45791,6 @@ Examples:
|
|
|
45418
45791
|
args.subscription_template_id = opts.subscriptionTemplateId;
|
|
45419
45792
|
if (opts["subscriptionTemplateId.not"] !== void 0)
|
|
45420
45793
|
args.subscription_template_id__not = opts["subscriptionTemplateId.not"];
|
|
45421
|
-
if (opts["subscriptionTemplateId.isNull"] !== void 0)
|
|
45422
|
-
args.subscription_template_id__isNull = opts["subscriptionTemplateId.isNull"];
|
|
45423
|
-
if (opts["subscriptionTemplateId.isNotNull"] !== void 0)
|
|
45424
|
-
args.subscription_template_id__isNotNull = opts["subscriptionTemplateId.isNotNull"];
|
|
45425
45794
|
if (opts["subscriptionTemplateId.equals"] !== void 0)
|
|
45426
45795
|
args.subscription_template_id__equals = opts["subscriptionTemplateId.equals"];
|
|
45427
45796
|
if (opts["subscriptionTemplateId.contains"] !== void 0)
|
|
@@ -45430,6 +45799,10 @@ Examples:
|
|
|
45430
45799
|
args.subscription_template_id__startsWith = opts["subscriptionTemplateId.startsWith"];
|
|
45431
45800
|
if (opts["subscriptionTemplateId.endWith"] !== void 0)
|
|
45432
45801
|
args.subscription_template_id__endWith = opts["subscriptionTemplateId.endWith"];
|
|
45802
|
+
if (opts["subscriptionTemplateId.isNull"] !== void 0)
|
|
45803
|
+
args.subscription_template_id__isNull = opts["subscriptionTemplateId.isNull"];
|
|
45804
|
+
if (opts["subscriptionTemplateId.isNotNull"] !== void 0)
|
|
45805
|
+
args.subscription_template_id__isNotNull = opts["subscriptionTemplateId.isNotNull"];
|
|
45433
45806
|
if (opts.search !== void 0)
|
|
45434
45807
|
args.search = opts.search;
|
|
45435
45808
|
if (opts.take !== void 0)
|
|
@@ -45445,28 +45818,24 @@ Examples:
|
|
|
45445
45818
|
"skip",
|
|
45446
45819
|
"id",
|
|
45447
45820
|
"id__not",
|
|
45448
|
-
"id__isNull",
|
|
45449
|
-
"id__isNotNull",
|
|
45450
45821
|
"id__equals",
|
|
45451
45822
|
"id__contains",
|
|
45452
45823
|
"id__startsWith",
|
|
45453
45824
|
"id__endWith",
|
|
45454
45825
|
"name",
|
|
45455
45826
|
"name__not",
|
|
45456
|
-
"name__isNull",
|
|
45457
|
-
"name__isNotNull",
|
|
45458
45827
|
"name__equals",
|
|
45459
45828
|
"name__contains",
|
|
45460
45829
|
"name__startsWith",
|
|
45461
45830
|
"name__endWith",
|
|
45462
45831
|
"subscription_template_id",
|
|
45463
45832
|
"subscription_template_id__not",
|
|
45464
|
-
"subscription_template_id__isNull",
|
|
45465
|
-
"subscription_template_id__isNotNull",
|
|
45466
45833
|
"subscription_template_id__equals",
|
|
45467
45834
|
"subscription_template_id__contains",
|
|
45468
45835
|
"subscription_template_id__startsWith",
|
|
45469
45836
|
"subscription_template_id__endWith",
|
|
45837
|
+
"subscription_template_id__isNull",
|
|
45838
|
+
"subscription_template_id__isNotNull",
|
|
45470
45839
|
"search"
|
|
45471
45840
|
]
|
|
45472
45841
|
});
|
|
@@ -45877,7 +46246,7 @@ Subscription status filter.
|
|
|
45877
46246
|
- \`any\`: every status, no exclusion.
|
|
45878
46247
|
|
|
45879
46248
|
Use \`status__in\` with comma-separated values to combine statuses. When the filter is omitted, \`draft\`, \`voided\`, \`cancelled\` and \`archived\` subscriptions are excluded.
|
|
45880
|
-
`).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.
|
|
46249
|
+
`).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.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.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("--plan-id.is-null <value>", `plan_id__isNull`).option("--plan-id.is-not-null <value>", `plan_id__isNotNull`).option("--original-quote-id <value>", `original_quote_id`).option("--original-quote-id.not <value>", `original_quote_id__not`).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("--original-quote-id.is-null <value>", `original_quote_id__isNull`).option("--original-quote-id.is-not-null <value>", `original_quote_id__isNotNull`).option("--customer-id <value>", `customer_id`).option("--customer-id.not <value>", `customer_id__not`).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("--customer-id.is-null <value>", `customer_id__isNull`).option("--customer-id.is-not-null <value>", `customer_id__isNotNull`).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.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("--purchase-order.is-null <value>", `purchase_order__isNull`).option("--purchase-order.is-not-null <value>", `purchase_order__isNotNull`).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.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("--cancel-at <value>", `cancel_at`).option("--cancel-at.not <value>", `cancel_at__not`).option("--cancel-at.equals <value>", `cancel_at__equals`).option("--cancel-at.lt <value>", `cancel_at__lt`).option("--cancel-at.lte <value>", `cancel_at__lte`).option("--cancel-at.gt <value>", `cancel_at__gt`).option("--cancel-at.gte <value>", `cancel_at__gte`).option("--cancel-at.is-null <value>", `cancel_at__isNull`).option("--cancel-at.is-not-null <value>", `cancel_at__isNotNull`).option("--contract-start.gte <value>", `Return only subscriptions whose active contract starts on or after this date.`).option("--contract-start.lte <value>", `Return only subscriptions whose active contract starts on or before this date.`).option("--contract-end.gte <value>", `Return only subscriptions whose active contract ends on or after this date.`).option("--contract-end.lte <value>", `Return only subscriptions whose active contract ends on or before this date.`).option("--renew-automatically <value>", `Return only subscriptions whose active contract renews automatically (\`true\`) or not (\`false\`).`).addHelpText("after", `
|
|
45881
46250
|
Examples:
|
|
45882
46251
|
hyperline subscriptions list
|
|
45883
46252
|
hyperline subscriptions list --take <take> --activation-strategy <activation_strategy>`).action(async (opts) => {
|
|
@@ -45899,10 +46268,6 @@ Examples:
|
|
|
45899
46268
|
args.currency = opts.currency;
|
|
45900
46269
|
if (opts["currency.not"] !== void 0)
|
|
45901
46270
|
args.currency__not = opts["currency.not"];
|
|
45902
|
-
if (opts["currency.isNull"] !== void 0)
|
|
45903
|
-
args.currency__isNull = opts["currency.isNull"];
|
|
45904
|
-
if (opts["currency.isNotNull"] !== void 0)
|
|
45905
|
-
args.currency__isNotNull = opts["currency.isNotNull"];
|
|
45906
46271
|
if (opts["currency.equals"] !== void 0)
|
|
45907
46272
|
args.currency__equals = opts["currency.equals"];
|
|
45908
46273
|
if (opts["currency.contains"] !== void 0)
|
|
@@ -45915,10 +46280,6 @@ Examples:
|
|
|
45915
46280
|
args.plan_id = opts.planId;
|
|
45916
46281
|
if (opts["planId.not"] !== void 0)
|
|
45917
46282
|
args.plan_id__not = opts["planId.not"];
|
|
45918
|
-
if (opts["planId.isNull"] !== void 0)
|
|
45919
|
-
args.plan_id__isNull = opts["planId.isNull"];
|
|
45920
|
-
if (opts["planId.isNotNull"] !== void 0)
|
|
45921
|
-
args.plan_id__isNotNull = opts["planId.isNotNull"];
|
|
45922
46283
|
if (opts["planId.equals"] !== void 0)
|
|
45923
46284
|
args.plan_id__equals = opts["planId.equals"];
|
|
45924
46285
|
if (opts["planId.contains"] !== void 0)
|
|
@@ -45927,14 +46288,14 @@ Examples:
|
|
|
45927
46288
|
args.plan_id__startsWith = opts["planId.startsWith"];
|
|
45928
46289
|
if (opts["planId.endWith"] !== void 0)
|
|
45929
46290
|
args.plan_id__endWith = opts["planId.endWith"];
|
|
46291
|
+
if (opts["planId.isNull"] !== void 0)
|
|
46292
|
+
args.plan_id__isNull = opts["planId.isNull"];
|
|
46293
|
+
if (opts["planId.isNotNull"] !== void 0)
|
|
46294
|
+
args.plan_id__isNotNull = opts["planId.isNotNull"];
|
|
45930
46295
|
if (opts.originalQuoteId !== void 0)
|
|
45931
46296
|
args.original_quote_id = opts.originalQuoteId;
|
|
45932
46297
|
if (opts["originalQuoteId.not"] !== void 0)
|
|
45933
46298
|
args.original_quote_id__not = opts["originalQuoteId.not"];
|
|
45934
|
-
if (opts["originalQuoteId.isNull"] !== void 0)
|
|
45935
|
-
args.original_quote_id__isNull = opts["originalQuoteId.isNull"];
|
|
45936
|
-
if (opts["originalQuoteId.isNotNull"] !== void 0)
|
|
45937
|
-
args.original_quote_id__isNotNull = opts["originalQuoteId.isNotNull"];
|
|
45938
46299
|
if (opts["originalQuoteId.equals"] !== void 0)
|
|
45939
46300
|
args.original_quote_id__equals = opts["originalQuoteId.equals"];
|
|
45940
46301
|
if (opts["originalQuoteId.contains"] !== void 0)
|
|
@@ -45943,14 +46304,14 @@ Examples:
|
|
|
45943
46304
|
args.original_quote_id__startsWith = opts["originalQuoteId.startsWith"];
|
|
45944
46305
|
if (opts["originalQuoteId.endWith"] !== void 0)
|
|
45945
46306
|
args.original_quote_id__endWith = opts["originalQuoteId.endWith"];
|
|
46307
|
+
if (opts["originalQuoteId.isNull"] !== void 0)
|
|
46308
|
+
args.original_quote_id__isNull = opts["originalQuoteId.isNull"];
|
|
46309
|
+
if (opts["originalQuoteId.isNotNull"] !== void 0)
|
|
46310
|
+
args.original_quote_id__isNotNull = opts["originalQuoteId.isNotNull"];
|
|
45946
46311
|
if (opts.customerId !== void 0)
|
|
45947
46312
|
args.customer_id = opts.customerId;
|
|
45948
46313
|
if (opts["customerId.not"] !== void 0)
|
|
45949
46314
|
args.customer_id__not = opts["customerId.not"];
|
|
45950
|
-
if (opts["customerId.isNull"] !== void 0)
|
|
45951
|
-
args.customer_id__isNull = opts["customerId.isNull"];
|
|
45952
|
-
if (opts["customerId.isNotNull"] !== void 0)
|
|
45953
|
-
args.customer_id__isNotNull = opts["customerId.isNotNull"];
|
|
45954
46315
|
if (opts["customerId.equals"] !== void 0)
|
|
45955
46316
|
args.customer_id__equals = opts["customerId.equals"];
|
|
45956
46317
|
if (opts["customerId.contains"] !== void 0)
|
|
@@ -45959,16 +46320,16 @@ Examples:
|
|
|
45959
46320
|
args.customer_id__startsWith = opts["customerId.startsWith"];
|
|
45960
46321
|
if (opts["customerId.endWith"] !== void 0)
|
|
45961
46322
|
args.customer_id__endWith = opts["customerId.endWith"];
|
|
46323
|
+
if (opts["customerId.isNull"] !== void 0)
|
|
46324
|
+
args.customer_id__isNull = opts["customerId.isNull"];
|
|
46325
|
+
if (opts["customerId.isNotNull"] !== void 0)
|
|
46326
|
+
args.customer_id__isNotNull = opts["customerId.isNotNull"];
|
|
45962
46327
|
if (opts.invoicingEntityId !== void 0)
|
|
45963
46328
|
args.invoicing_entity_id = opts.invoicingEntityId;
|
|
45964
46329
|
if (opts.purchaseOrder !== void 0)
|
|
45965
46330
|
args.purchase_order = opts.purchaseOrder;
|
|
45966
46331
|
if (opts["purchaseOrder.not"] !== void 0)
|
|
45967
46332
|
args.purchase_order__not = opts["purchaseOrder.not"];
|
|
45968
|
-
if (opts["purchaseOrder.isNull"] !== void 0)
|
|
45969
|
-
args.purchase_order__isNull = opts["purchaseOrder.isNull"];
|
|
45970
|
-
if (opts["purchaseOrder.isNotNull"] !== void 0)
|
|
45971
|
-
args.purchase_order__isNotNull = opts["purchaseOrder.isNotNull"];
|
|
45972
46333
|
if (opts["purchaseOrder.equals"] !== void 0)
|
|
45973
46334
|
args.purchase_order__equals = opts["purchaseOrder.equals"];
|
|
45974
46335
|
if (opts["purchaseOrder.contains"] !== void 0)
|
|
@@ -45977,6 +46338,10 @@ Examples:
|
|
|
45977
46338
|
args.purchase_order__startsWith = opts["purchaseOrder.startsWith"];
|
|
45978
46339
|
if (opts["purchaseOrder.endWith"] !== void 0)
|
|
45979
46340
|
args.purchase_order__endWith = opts["purchaseOrder.endWith"];
|
|
46341
|
+
if (opts["purchaseOrder.isNull"] !== void 0)
|
|
46342
|
+
args.purchase_order__isNull = opts["purchaseOrder.isNull"];
|
|
46343
|
+
if (opts["purchaseOrder.isNotNull"] !== void 0)
|
|
46344
|
+
args.purchase_order__isNotNull = opts["purchaseOrder.isNotNull"];
|
|
45980
46345
|
if (opts.customProperties !== void 0)
|
|
45981
46346
|
args.custom_properties = opts.customProperties;
|
|
45982
46347
|
if (opts.invoiceDrafts !== void 0)
|
|
@@ -45987,10 +46352,6 @@ Examples:
|
|
|
45987
46352
|
args.updated_at = opts.updatedAt;
|
|
45988
46353
|
if (opts["updatedAt.not"] !== void 0)
|
|
45989
46354
|
args.updated_at__not = opts["updatedAt.not"];
|
|
45990
|
-
if (opts["updatedAt.isNull"] !== void 0)
|
|
45991
|
-
args.updated_at__isNull = opts["updatedAt.isNull"];
|
|
45992
|
-
if (opts["updatedAt.isNotNull"] !== void 0)
|
|
45993
|
-
args.updated_at__isNotNull = opts["updatedAt.isNotNull"];
|
|
45994
46355
|
if (opts["updatedAt.equals"] !== void 0)
|
|
45995
46356
|
args.updated_at__equals = opts["updatedAt.equals"];
|
|
45996
46357
|
if (opts["updatedAt.lt"] !== void 0)
|
|
@@ -46005,10 +46366,6 @@ Examples:
|
|
|
46005
46366
|
args.cancel_at = opts.cancelAt;
|
|
46006
46367
|
if (opts["cancelAt.not"] !== void 0)
|
|
46007
46368
|
args.cancel_at__not = opts["cancelAt.not"];
|
|
46008
|
-
if (opts["cancelAt.isNull"] !== void 0)
|
|
46009
|
-
args.cancel_at__isNull = opts["cancelAt.isNull"];
|
|
46010
|
-
if (opts["cancelAt.isNotNull"] !== void 0)
|
|
46011
|
-
args.cancel_at__isNotNull = opts["cancelAt.isNotNull"];
|
|
46012
46369
|
if (opts["cancelAt.equals"] !== void 0)
|
|
46013
46370
|
args.cancel_at__equals = opts["cancelAt.equals"];
|
|
46014
46371
|
if (opts["cancelAt.lt"] !== void 0)
|
|
@@ -46019,6 +46376,10 @@ Examples:
|
|
|
46019
46376
|
args.cancel_at__gt = opts["cancelAt.gt"];
|
|
46020
46377
|
if (opts["cancelAt.gte"] !== void 0)
|
|
46021
46378
|
args.cancel_at__gte = opts["cancelAt.gte"];
|
|
46379
|
+
if (opts["cancelAt.isNull"] !== void 0)
|
|
46380
|
+
args.cancel_at__isNull = opts["cancelAt.isNull"];
|
|
46381
|
+
if (opts["cancelAt.isNotNull"] !== void 0)
|
|
46382
|
+
args.cancel_at__isNotNull = opts["cancelAt.isNotNull"];
|
|
46022
46383
|
if (opts["contractStart.gte"] !== void 0)
|
|
46023
46384
|
args.contract_start__gte = opts["contractStart.gte"];
|
|
46024
46385
|
if (opts["contractStart.lte"] !== void 0)
|
|
@@ -46046,52 +46407,48 @@ Examples:
|
|
|
46046
46407
|
"status__in",
|
|
46047
46408
|
"currency",
|
|
46048
46409
|
"currency__not",
|
|
46049
|
-
"currency__isNull",
|
|
46050
|
-
"currency__isNotNull",
|
|
46051
46410
|
"currency__equals",
|
|
46052
46411
|
"currency__contains",
|
|
46053
46412
|
"currency__startsWith",
|
|
46054
46413
|
"currency__endWith",
|
|
46055
46414
|
"plan_id",
|
|
46056
46415
|
"plan_id__not",
|
|
46057
|
-
"plan_id__isNull",
|
|
46058
|
-
"plan_id__isNotNull",
|
|
46059
46416
|
"plan_id__equals",
|
|
46060
46417
|
"plan_id__contains",
|
|
46061
46418
|
"plan_id__startsWith",
|
|
46062
46419
|
"plan_id__endWith",
|
|
46420
|
+
"plan_id__isNull",
|
|
46421
|
+
"plan_id__isNotNull",
|
|
46063
46422
|
"original_quote_id",
|
|
46064
46423
|
"original_quote_id__not",
|
|
46065
|
-
"original_quote_id__isNull",
|
|
46066
|
-
"original_quote_id__isNotNull",
|
|
46067
46424
|
"original_quote_id__equals",
|
|
46068
46425
|
"original_quote_id__contains",
|
|
46069
46426
|
"original_quote_id__startsWith",
|
|
46070
46427
|
"original_quote_id__endWith",
|
|
46428
|
+
"original_quote_id__isNull",
|
|
46429
|
+
"original_quote_id__isNotNull",
|
|
46071
46430
|
"customer_id",
|
|
46072
46431
|
"customer_id__not",
|
|
46073
|
-
"customer_id__isNull",
|
|
46074
|
-
"customer_id__isNotNull",
|
|
46075
46432
|
"customer_id__equals",
|
|
46076
46433
|
"customer_id__contains",
|
|
46077
46434
|
"customer_id__startsWith",
|
|
46078
46435
|
"customer_id__endWith",
|
|
46436
|
+
"customer_id__isNull",
|
|
46437
|
+
"customer_id__isNotNull",
|
|
46079
46438
|
"invoicing_entity_id",
|
|
46080
46439
|
"purchase_order",
|
|
46081
46440
|
"purchase_order__not",
|
|
46082
|
-
"purchase_order__isNull",
|
|
46083
|
-
"purchase_order__isNotNull",
|
|
46084
46441
|
"purchase_order__equals",
|
|
46085
46442
|
"purchase_order__contains",
|
|
46086
46443
|
"purchase_order__startsWith",
|
|
46087
46444
|
"purchase_order__endWith",
|
|
46445
|
+
"purchase_order__isNull",
|
|
46446
|
+
"purchase_order__isNotNull",
|
|
46088
46447
|
"custom_properties",
|
|
46089
46448
|
"invoice_drafts",
|
|
46090
46449
|
"integration_entity_id",
|
|
46091
46450
|
"updated_at",
|
|
46092
46451
|
"updated_at__not",
|
|
46093
|
-
"updated_at__isNull",
|
|
46094
|
-
"updated_at__isNotNull",
|
|
46095
46452
|
"updated_at__equals",
|
|
46096
46453
|
"updated_at__lt",
|
|
46097
46454
|
"updated_at__lte",
|
|
@@ -46099,13 +46456,13 @@ Examples:
|
|
|
46099
46456
|
"updated_at__gte",
|
|
46100
46457
|
"cancel_at",
|
|
46101
46458
|
"cancel_at__not",
|
|
46102
|
-
"cancel_at__isNull",
|
|
46103
|
-
"cancel_at__isNotNull",
|
|
46104
46459
|
"cancel_at__equals",
|
|
46105
46460
|
"cancel_at__lt",
|
|
46106
46461
|
"cancel_at__lte",
|
|
46107
46462
|
"cancel_at__gt",
|
|
46108
46463
|
"cancel_at__gte",
|
|
46464
|
+
"cancel_at__isNull",
|
|
46465
|
+
"cancel_at__isNotNull",
|
|
46109
46466
|
"contract_start__gte",
|
|
46110
46467
|
"contract_start__lte",
|
|
46111
46468
|
"contract_end__gte",
|
|
@@ -46392,7 +46749,7 @@ Examples:
|
|
|
46392
46749
|
// build/commands/generated/subscriptions-transitions.js
|
|
46393
46750
|
function registerSubscriptions_TransitionsCommands(parent) {
|
|
46394
46751
|
const resource = parent.command("subscriptions-transitions").description("Manage subscriptions > transitions");
|
|
46395
|
-
resource.command("list-subscription-transitions").description(`List subscription transitions (migrations from one subscription to another). Filterable and paginated with take/skip.`).option("--take <number>", `take`).option("--skip <number>", `skip`).option("--status <value>", `status`).option("--status.in <value>", `status__in`).option("--source-subscription-id <value>", `source_subscription_id`).option("--source-subscription-id.not <value>", `source_subscription_id__not`).option("--source-subscription-id.
|
|
46752
|
+
resource.command("list-subscription-transitions").description(`List subscription transitions (migrations from one subscription to another). Filterable and paginated with take/skip.`).option("--take <number>", `take`).option("--skip <number>", `skip`).option("--status <value>", `status`).option("--status.in <value>", `status__in`).option("--source-subscription-id <value>", `source_subscription_id`).option("--source-subscription-id.not <value>", `source_subscription_id__not`).option("--source-subscription-id.equals <value>", `source_subscription_id__equals`).option("--source-subscription-id.contains <value>", `source_subscription_id__contains`).option("--source-subscription-id.starts-with <value>", `source_subscription_id__startsWith`).option("--source-subscription-id.end-with <value>", `source_subscription_id__endWith`).option("--base-subscription-id <value>", `base_subscription_id`).option("--base-subscription-id.not <value>", `base_subscription_id__not`).option("--base-subscription-id.equals <value>", `base_subscription_id__equals`).option("--base-subscription-id.contains <value>", `base_subscription_id__contains`).option("--base-subscription-id.starts-with <value>", `base_subscription_id__startsWith`).option("--base-subscription-id.end-with <value>", `base_subscription_id__endWith`).option("--target-subscription-id <value>", `target_subscription_id`).option("--target-subscription-id.not <value>", `target_subscription_id__not`).option("--target-subscription-id.equals <value>", `target_subscription_id__equals`).option("--target-subscription-id.contains <value>", `target_subscription_id__contains`).option("--target-subscription-id.starts-with <value>", `target_subscription_id__startsWith`).option("--target-subscription-id.end-with <value>", `target_subscription_id__endWith`).option("--target-subscription-id.is-null <value>", `target_subscription_id__isNull`).option("--target-subscription-id.is-not-null <value>", `target_subscription_id__isNotNull`).option("--transition-date <value>", `transition_date`).option("--transition-date.not <value>", `transition_date__not`).option("--transition-date.equals <value>", `transition_date__equals`).option("--transition-date.lt <value>", `transition_date__lt`).option("--transition-date.lte <value>", `transition_date__lte`).option("--transition-date.gt <value>", `transition_date__gt`).option("--transition-date.gte <value>", `transition_date__gte`).option("--transition-date.is-null <value>", `transition_date__isNull`).option("--transition-date.is-not-null <value>", `transition_date__isNotNull`).option("--transitioned-at <value>", `transitioned_at`).option("--transitioned-at.not <value>", `transitioned_at__not`).option("--transitioned-at.equals <value>", `transitioned_at__equals`).option("--transitioned-at.lt <value>", `transitioned_at__lt`).option("--transitioned-at.lte <value>", `transitioned_at__lte`).option("--transitioned-at.gt <value>", `transitioned_at__gt`).option("--transitioned-at.gte <value>", `transitioned_at__gte`).option("--transitioned-at.is-null <value>", `transitioned_at__isNull`).option("--transitioned-at.is-not-null <value>", `transitioned_at__isNotNull`).addHelpText("after", `
|
|
46396
46753
|
Examples:
|
|
46397
46754
|
hyperline subscriptions-transitions list-subscription-transitions
|
|
46398
46755
|
hyperline subscriptions-transitions list-subscription-transitions --take <take> --status <status>`).action(async (opts) => {
|
|
@@ -46410,10 +46767,6 @@ Examples:
|
|
|
46410
46767
|
args.source_subscription_id = opts.sourceSubscriptionId;
|
|
46411
46768
|
if (opts["sourceSubscriptionId.not"] !== void 0)
|
|
46412
46769
|
args.source_subscription_id__not = opts["sourceSubscriptionId.not"];
|
|
46413
|
-
if (opts["sourceSubscriptionId.isNull"] !== void 0)
|
|
46414
|
-
args.source_subscription_id__isNull = opts["sourceSubscriptionId.isNull"];
|
|
46415
|
-
if (opts["sourceSubscriptionId.isNotNull"] !== void 0)
|
|
46416
|
-
args.source_subscription_id__isNotNull = opts["sourceSubscriptionId.isNotNull"];
|
|
46417
46770
|
if (opts["sourceSubscriptionId.equals"] !== void 0)
|
|
46418
46771
|
args.source_subscription_id__equals = opts["sourceSubscriptionId.equals"];
|
|
46419
46772
|
if (opts["sourceSubscriptionId.contains"] !== void 0)
|
|
@@ -46426,10 +46779,6 @@ Examples:
|
|
|
46426
46779
|
args.base_subscription_id = opts.baseSubscriptionId;
|
|
46427
46780
|
if (opts["baseSubscriptionId.not"] !== void 0)
|
|
46428
46781
|
args.base_subscription_id__not = opts["baseSubscriptionId.not"];
|
|
46429
|
-
if (opts["baseSubscriptionId.isNull"] !== void 0)
|
|
46430
|
-
args.base_subscription_id__isNull = opts["baseSubscriptionId.isNull"];
|
|
46431
|
-
if (opts["baseSubscriptionId.isNotNull"] !== void 0)
|
|
46432
|
-
args.base_subscription_id__isNotNull = opts["baseSubscriptionId.isNotNull"];
|
|
46433
46782
|
if (opts["baseSubscriptionId.equals"] !== void 0)
|
|
46434
46783
|
args.base_subscription_id__equals = opts["baseSubscriptionId.equals"];
|
|
46435
46784
|
if (opts["baseSubscriptionId.contains"] !== void 0)
|
|
@@ -46442,10 +46791,6 @@ Examples:
|
|
|
46442
46791
|
args.target_subscription_id = opts.targetSubscriptionId;
|
|
46443
46792
|
if (opts["targetSubscriptionId.not"] !== void 0)
|
|
46444
46793
|
args.target_subscription_id__not = opts["targetSubscriptionId.not"];
|
|
46445
|
-
if (opts["targetSubscriptionId.isNull"] !== void 0)
|
|
46446
|
-
args.target_subscription_id__isNull = opts["targetSubscriptionId.isNull"];
|
|
46447
|
-
if (opts["targetSubscriptionId.isNotNull"] !== void 0)
|
|
46448
|
-
args.target_subscription_id__isNotNull = opts["targetSubscriptionId.isNotNull"];
|
|
46449
46794
|
if (opts["targetSubscriptionId.equals"] !== void 0)
|
|
46450
46795
|
args.target_subscription_id__equals = opts["targetSubscriptionId.equals"];
|
|
46451
46796
|
if (opts["targetSubscriptionId.contains"] !== void 0)
|
|
@@ -46454,14 +46799,14 @@ Examples:
|
|
|
46454
46799
|
args.target_subscription_id__startsWith = opts["targetSubscriptionId.startsWith"];
|
|
46455
46800
|
if (opts["targetSubscriptionId.endWith"] !== void 0)
|
|
46456
46801
|
args.target_subscription_id__endWith = opts["targetSubscriptionId.endWith"];
|
|
46802
|
+
if (opts["targetSubscriptionId.isNull"] !== void 0)
|
|
46803
|
+
args.target_subscription_id__isNull = opts["targetSubscriptionId.isNull"];
|
|
46804
|
+
if (opts["targetSubscriptionId.isNotNull"] !== void 0)
|
|
46805
|
+
args.target_subscription_id__isNotNull = opts["targetSubscriptionId.isNotNull"];
|
|
46457
46806
|
if (opts.transitionDate !== void 0)
|
|
46458
46807
|
args.transition_date = opts.transitionDate;
|
|
46459
46808
|
if (opts["transitionDate.not"] !== void 0)
|
|
46460
46809
|
args.transition_date__not = opts["transitionDate.not"];
|
|
46461
|
-
if (opts["transitionDate.isNull"] !== void 0)
|
|
46462
|
-
args.transition_date__isNull = opts["transitionDate.isNull"];
|
|
46463
|
-
if (opts["transitionDate.isNotNull"] !== void 0)
|
|
46464
|
-
args.transition_date__isNotNull = opts["transitionDate.isNotNull"];
|
|
46465
46810
|
if (opts["transitionDate.equals"] !== void 0)
|
|
46466
46811
|
args.transition_date__equals = opts["transitionDate.equals"];
|
|
46467
46812
|
if (opts["transitionDate.lt"] !== void 0)
|
|
@@ -46472,14 +46817,14 @@ Examples:
|
|
|
46472
46817
|
args.transition_date__gt = opts["transitionDate.gt"];
|
|
46473
46818
|
if (opts["transitionDate.gte"] !== void 0)
|
|
46474
46819
|
args.transition_date__gte = opts["transitionDate.gte"];
|
|
46820
|
+
if (opts["transitionDate.isNull"] !== void 0)
|
|
46821
|
+
args.transition_date__isNull = opts["transitionDate.isNull"];
|
|
46822
|
+
if (opts["transitionDate.isNotNull"] !== void 0)
|
|
46823
|
+
args.transition_date__isNotNull = opts["transitionDate.isNotNull"];
|
|
46475
46824
|
if (opts.transitionedAt !== void 0)
|
|
46476
46825
|
args.transitioned_at = opts.transitionedAt;
|
|
46477
46826
|
if (opts["transitionedAt.not"] !== void 0)
|
|
46478
46827
|
args.transitioned_at__not = opts["transitionedAt.not"];
|
|
46479
|
-
if (opts["transitionedAt.isNull"] !== void 0)
|
|
46480
|
-
args.transitioned_at__isNull = opts["transitionedAt.isNull"];
|
|
46481
|
-
if (opts["transitionedAt.isNotNull"] !== void 0)
|
|
46482
|
-
args.transitioned_at__isNotNull = opts["transitionedAt.isNotNull"];
|
|
46483
46828
|
if (opts["transitionedAt.equals"] !== void 0)
|
|
46484
46829
|
args.transitioned_at__equals = opts["transitionedAt.equals"];
|
|
46485
46830
|
if (opts["transitionedAt.lt"] !== void 0)
|
|
@@ -46490,6 +46835,10 @@ Examples:
|
|
|
46490
46835
|
args.transitioned_at__gt = opts["transitionedAt.gt"];
|
|
46491
46836
|
if (opts["transitionedAt.gte"] !== void 0)
|
|
46492
46837
|
args.transitioned_at__gte = opts["transitionedAt.gte"];
|
|
46838
|
+
if (opts["transitionedAt.isNull"] !== void 0)
|
|
46839
|
+
args.transitioned_at__isNull = opts["transitionedAt.isNull"];
|
|
46840
|
+
if (opts["transitionedAt.isNotNull"] !== void 0)
|
|
46841
|
+
args.transitioned_at__isNotNull = opts["transitionedAt.isNotNull"];
|
|
46493
46842
|
if (opts.take !== void 0)
|
|
46494
46843
|
args.take = Number(opts.take);
|
|
46495
46844
|
if (opts.skip !== void 0)
|
|
@@ -46505,46 +46854,42 @@ Examples:
|
|
|
46505
46854
|
"status__in",
|
|
46506
46855
|
"source_subscription_id",
|
|
46507
46856
|
"source_subscription_id__not",
|
|
46508
|
-
"source_subscription_id__isNull",
|
|
46509
|
-
"source_subscription_id__isNotNull",
|
|
46510
46857
|
"source_subscription_id__equals",
|
|
46511
46858
|
"source_subscription_id__contains",
|
|
46512
46859
|
"source_subscription_id__startsWith",
|
|
46513
46860
|
"source_subscription_id__endWith",
|
|
46514
46861
|
"base_subscription_id",
|
|
46515
46862
|
"base_subscription_id__not",
|
|
46516
|
-
"base_subscription_id__isNull",
|
|
46517
|
-
"base_subscription_id__isNotNull",
|
|
46518
46863
|
"base_subscription_id__equals",
|
|
46519
46864
|
"base_subscription_id__contains",
|
|
46520
46865
|
"base_subscription_id__startsWith",
|
|
46521
46866
|
"base_subscription_id__endWith",
|
|
46522
46867
|
"target_subscription_id",
|
|
46523
46868
|
"target_subscription_id__not",
|
|
46524
|
-
"target_subscription_id__isNull",
|
|
46525
|
-
"target_subscription_id__isNotNull",
|
|
46526
46869
|
"target_subscription_id__equals",
|
|
46527
46870
|
"target_subscription_id__contains",
|
|
46528
46871
|
"target_subscription_id__startsWith",
|
|
46529
46872
|
"target_subscription_id__endWith",
|
|
46873
|
+
"target_subscription_id__isNull",
|
|
46874
|
+
"target_subscription_id__isNotNull",
|
|
46530
46875
|
"transition_date",
|
|
46531
46876
|
"transition_date__not",
|
|
46532
|
-
"transition_date__isNull",
|
|
46533
|
-
"transition_date__isNotNull",
|
|
46534
46877
|
"transition_date__equals",
|
|
46535
46878
|
"transition_date__lt",
|
|
46536
46879
|
"transition_date__lte",
|
|
46537
46880
|
"transition_date__gt",
|
|
46538
46881
|
"transition_date__gte",
|
|
46882
|
+
"transition_date__isNull",
|
|
46883
|
+
"transition_date__isNotNull",
|
|
46539
46884
|
"transitioned_at",
|
|
46540
46885
|
"transitioned_at__not",
|
|
46541
|
-
"transitioned_at__isNull",
|
|
46542
|
-
"transitioned_at__isNotNull",
|
|
46543
46886
|
"transitioned_at__equals",
|
|
46544
46887
|
"transitioned_at__lt",
|
|
46545
46888
|
"transitioned_at__lte",
|
|
46546
46889
|
"transitioned_at__gt",
|
|
46547
|
-
"transitioned_at__gte"
|
|
46890
|
+
"transitioned_at__gte",
|
|
46891
|
+
"transitioned_at__isNull",
|
|
46892
|
+
"transitioned_at__isNotNull"
|
|
46548
46893
|
]
|
|
46549
46894
|
});
|
|
46550
46895
|
});
|
|
@@ -46622,7 +46967,7 @@ Examples:
|
|
|
46622
46967
|
// build/commands/generated/taxes.js
|
|
46623
46968
|
function registerTaxesCommands(parent) {
|
|
46624
46969
|
const resource = parent.command("taxes").description("Manage taxes");
|
|
46625
|
-
resource.command("list-tax-rates").description(`List custom and default tax rate mappings with optional filters for id, name, description, and invoicing_entity_id. Paginated with take/skip.`).option("--take <number>", `take`).option("--skip <number>", `skip`).option("--id <value>", `id`).option("--id.not <value>", `id__not`).option("--id.
|
|
46970
|
+
resource.command("list-tax-rates").description(`List custom and default tax rate mappings with optional filters for id, name, description, and invoicing_entity_id. Paginated with take/skip.`).option("--take <number>", `take`).option("--skip <number>", `skip`).option("--id <value>", `id`).option("--id.not <value>", `id__not`).option("--id.equals <value>", `id__equals`).option("--id.contains <value>", `id__contains`).option("--id.starts-with <value>", `id__startsWith`).option("--id.end-with <value>", `id__endWith`).option("--name <value>", `name`).option("--name.not <value>", `name__not`).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("--name.is-null <value>", `name__isNull`).option("--name.is-not-null <value>", `name__isNotNull`).option("--description <value>", `description`).option("--description.not <value>", `description__not`).option("--description.equals <value>", `description__equals`).option("--description.contains <value>", `description__contains`).option("--description.starts-with <value>", `description__startsWith`).option("--description.end-with <value>", `description__endWith`).option("--description.is-null <value>", `description__isNull`).option("--description.is-not-null <value>", `description__isNotNull`).option("--invoicing-entity-id <value>", `invoicing_entity_id`).option("--invoicing-entity-id.not <value>", `invoicing_entity_id__not`).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`).addHelpText("after", `
|
|
46626
46971
|
Examples:
|
|
46627
46972
|
hyperline taxes list-tax-rates
|
|
46628
46973
|
hyperline taxes list-tax-rates --take <take> --id <id>`).action(async (opts) => {
|
|
@@ -46636,10 +46981,6 @@ Examples:
|
|
|
46636
46981
|
args.id = opts.id;
|
|
46637
46982
|
if (opts["id.not"] !== void 0)
|
|
46638
46983
|
args.id__not = opts["id.not"];
|
|
46639
|
-
if (opts["id.isNull"] !== void 0)
|
|
46640
|
-
args.id__isNull = opts["id.isNull"];
|
|
46641
|
-
if (opts["id.isNotNull"] !== void 0)
|
|
46642
|
-
args.id__isNotNull = opts["id.isNotNull"];
|
|
46643
46984
|
if (opts["id.equals"] !== void 0)
|
|
46644
46985
|
args.id__equals = opts["id.equals"];
|
|
46645
46986
|
if (opts["id.contains"] !== void 0)
|
|
@@ -46652,10 +46993,6 @@ Examples:
|
|
|
46652
46993
|
args.name = opts.name;
|
|
46653
46994
|
if (opts["name.not"] !== void 0)
|
|
46654
46995
|
args.name__not = opts["name.not"];
|
|
46655
|
-
if (opts["name.isNull"] !== void 0)
|
|
46656
|
-
args.name__isNull = opts["name.isNull"];
|
|
46657
|
-
if (opts["name.isNotNull"] !== void 0)
|
|
46658
|
-
args.name__isNotNull = opts["name.isNotNull"];
|
|
46659
46996
|
if (opts["name.equals"] !== void 0)
|
|
46660
46997
|
args.name__equals = opts["name.equals"];
|
|
46661
46998
|
if (opts["name.contains"] !== void 0)
|
|
@@ -46664,14 +47001,14 @@ Examples:
|
|
|
46664
47001
|
args.name__startsWith = opts["name.startsWith"];
|
|
46665
47002
|
if (opts["name.endWith"] !== void 0)
|
|
46666
47003
|
args.name__endWith = opts["name.endWith"];
|
|
47004
|
+
if (opts["name.isNull"] !== void 0)
|
|
47005
|
+
args.name__isNull = opts["name.isNull"];
|
|
47006
|
+
if (opts["name.isNotNull"] !== void 0)
|
|
47007
|
+
args.name__isNotNull = opts["name.isNotNull"];
|
|
46667
47008
|
if (opts.description !== void 0)
|
|
46668
47009
|
args.description = opts.description;
|
|
46669
47010
|
if (opts["description.not"] !== void 0)
|
|
46670
47011
|
args.description__not = opts["description.not"];
|
|
46671
|
-
if (opts["description.isNull"] !== void 0)
|
|
46672
|
-
args.description__isNull = opts["description.isNull"];
|
|
46673
|
-
if (opts["description.isNotNull"] !== void 0)
|
|
46674
|
-
args.description__isNotNull = opts["description.isNotNull"];
|
|
46675
47012
|
if (opts["description.equals"] !== void 0)
|
|
46676
47013
|
args.description__equals = opts["description.equals"];
|
|
46677
47014
|
if (opts["description.contains"] !== void 0)
|
|
@@ -46680,14 +47017,14 @@ Examples:
|
|
|
46680
47017
|
args.description__startsWith = opts["description.startsWith"];
|
|
46681
47018
|
if (opts["description.endWith"] !== void 0)
|
|
46682
47019
|
args.description__endWith = opts["description.endWith"];
|
|
47020
|
+
if (opts["description.isNull"] !== void 0)
|
|
47021
|
+
args.description__isNull = opts["description.isNull"];
|
|
47022
|
+
if (opts["description.isNotNull"] !== void 0)
|
|
47023
|
+
args.description__isNotNull = opts["description.isNotNull"];
|
|
46683
47024
|
if (opts.invoicingEntityId !== void 0)
|
|
46684
47025
|
args.invoicing_entity_id = opts.invoicingEntityId;
|
|
46685
47026
|
if (opts["invoicingEntityId.not"] !== void 0)
|
|
46686
47027
|
args.invoicing_entity_id__not = opts["invoicingEntityId.not"];
|
|
46687
|
-
if (opts["invoicingEntityId.isNull"] !== void 0)
|
|
46688
|
-
args.invoicing_entity_id__isNull = opts["invoicingEntityId.isNull"];
|
|
46689
|
-
if (opts["invoicingEntityId.isNotNull"] !== void 0)
|
|
46690
|
-
args.invoicing_entity_id__isNotNull = opts["invoicingEntityId.isNotNull"];
|
|
46691
47028
|
if (opts["invoicingEntityId.equals"] !== void 0)
|
|
46692
47029
|
args.invoicing_entity_id__equals = opts["invoicingEntityId.equals"];
|
|
46693
47030
|
if (opts["invoicingEntityId.contains"] !== void 0)
|
|
@@ -46709,32 +47046,28 @@ Examples:
|
|
|
46709
47046
|
"skip",
|
|
46710
47047
|
"id",
|
|
46711
47048
|
"id__not",
|
|
46712
|
-
"id__isNull",
|
|
46713
|
-
"id__isNotNull",
|
|
46714
47049
|
"id__equals",
|
|
46715
47050
|
"id__contains",
|
|
46716
47051
|
"id__startsWith",
|
|
46717
47052
|
"id__endWith",
|
|
46718
47053
|
"name",
|
|
46719
47054
|
"name__not",
|
|
46720
|
-
"name__isNull",
|
|
46721
|
-
"name__isNotNull",
|
|
46722
47055
|
"name__equals",
|
|
46723
47056
|
"name__contains",
|
|
46724
47057
|
"name__startsWith",
|
|
46725
47058
|
"name__endWith",
|
|
47059
|
+
"name__isNull",
|
|
47060
|
+
"name__isNotNull",
|
|
46726
47061
|
"description",
|
|
46727
47062
|
"description__not",
|
|
46728
|
-
"description__isNull",
|
|
46729
|
-
"description__isNotNull",
|
|
46730
47063
|
"description__equals",
|
|
46731
47064
|
"description__contains",
|
|
46732
47065
|
"description__startsWith",
|
|
46733
47066
|
"description__endWith",
|
|
47067
|
+
"description__isNull",
|
|
47068
|
+
"description__isNotNull",
|
|
46734
47069
|
"invoicing_entity_id",
|
|
46735
47070
|
"invoicing_entity_id__not",
|
|
46736
|
-
"invoicing_entity_id__isNull",
|
|
46737
|
-
"invoicing_entity_id__isNotNull",
|
|
46738
47071
|
"invoicing_entity_id__equals",
|
|
46739
47072
|
"invoicing_entity_id__contains",
|
|
46740
47073
|
"invoicing_entity_id__startsWith",
|
|
@@ -47314,10 +47647,12 @@ function registerAllCommands(program2) {
|
|
|
47314
47647
|
registerAi_CostsCommands(program2);
|
|
47315
47648
|
registerAnalyticsCommands(program2);
|
|
47316
47649
|
registerBank_AccountsCommands(program2);
|
|
47650
|
+
registerCatalogCommands(program2);
|
|
47317
47651
|
registerCompaniesCommands(program2);
|
|
47318
47652
|
registerCouponsCommands(program2);
|
|
47319
47653
|
registerCoupons_Promotion_CodesCommands(program2);
|
|
47320
47654
|
registerCustomers_CreditsCommands(program2);
|
|
47655
|
+
registerCustomers_FeaturesCommands(program2);
|
|
47321
47656
|
registerCustomers_Payment_MethodsCommands(program2);
|
|
47322
47657
|
registerCustomers_AddressCommands(program2);
|
|
47323
47658
|
registerCustomers_ShippingCommands(program2);
|
|
@@ -47326,12 +47661,14 @@ function registerAllCommands(program2) {
|
|
|
47326
47661
|
registerOrganisationsCommands(program2);
|
|
47327
47662
|
registerCustomers_SegmentsCommands(program2);
|
|
47328
47663
|
registerExportsCommands(program2);
|
|
47664
|
+
registerFeaturesCommands(program2);
|
|
47329
47665
|
registerFilesCommands(program2);
|
|
47330
47666
|
registerInvoicesCommands(program2);
|
|
47331
47667
|
registerInvoices_TransactionsCommands(program2);
|
|
47332
47668
|
registerInvoicing_EntitiesCommands(program2);
|
|
47333
47669
|
registerAi_MonitoringCommands(program2);
|
|
47334
47670
|
registerPaymentsCommands(program2);
|
|
47671
|
+
registerProducts_FeaturesCommands(program2);
|
|
47335
47672
|
registerProductsCommands(program2);
|
|
47336
47673
|
registerPrice_ConfigurationsCommands(program2);
|
|
47337
47674
|
registerQuotesCommands(program2);
|
|
@@ -63973,6 +64310,7 @@ var REDACTED_KEY_NAMES = /* @__PURE__ */ new Set([
|
|
|
63973
64310
|
"credentials",
|
|
63974
64311
|
"iban",
|
|
63975
64312
|
"idtoken",
|
|
64313
|
+
"launchticket",
|
|
63976
64314
|
"privatekey",
|
|
63977
64315
|
"publictoken",
|
|
63978
64316
|
"refreshtoken",
|
|
@@ -63982,7 +64320,7 @@ var REDACTED_KEY_NAMES = /* @__PURE__ */ new Set([
|
|
|
63982
64320
|
"verificationcode"
|
|
63983
64321
|
]);
|
|
63984
64322
|
var REDACTED_KEY_SUFFIX_PATTERN = /(secret|password|passphrase|apikey)$/;
|
|
63985
|
-
var REDACTED_KEY_CANDIDATE_PATTERN = /token|key|secret|pass|assertion|verifier|credential|authorization|cookie|iban|cardnumber|code|connectionurl/i;
|
|
64323
|
+
var REDACTED_KEY_CANDIDATE_PATTERN = /token|ticket|key|secret|pass|assertion|verifier|credential|authorization|cookie|iban|cardnumber|code|connectionurl/i;
|
|
63986
64324
|
var URL_ONLY_REDACTED_KEYS = /* @__PURE__ */ new Set(["key"]);
|
|
63987
64325
|
var OAUTH_CODE_KEY = "code";
|
|
63988
64326
|
var OAUTH_CODE_CONTEXT_KEYS = ["state", "grant_type"];
|
|
@@ -66840,8 +67178,16 @@ var DST_HOUR_SHIFT_BY_LOCAL_MILLISECOND_OF_DAY = /* @__PURE__ */ new Map([
|
|
|
66840
67178
|
[MILLISECONDS_PER_HOUR - 1, -MILLISECONDS_PER_HOUR]
|
|
66841
67179
|
]);
|
|
66842
67180
|
|
|
67181
|
+
// ../hyperline-lib/build/utils/overviewPeriods.js
|
|
67182
|
+
var OverviewPeriodSchema = external_exports.enum([
|
|
67183
|
+
"this_month",
|
|
67184
|
+
"last_month",
|
|
67185
|
+
"last_3_months"
|
|
67186
|
+
]);
|
|
67187
|
+
|
|
66843
67188
|
// ../hyperline-lib/build/utils/api/filterBuilder.js
|
|
66844
|
-
var
|
|
67189
|
+
var nullAuthorizedOperators = ["isNull", "isNotNull"];
|
|
67190
|
+
var baseAuthorizedOperators = ["not", ...nullAuthorizedOperators];
|
|
66845
67191
|
var booleanAuthorizedOperators = [
|
|
66846
67192
|
...baseAuthorizedOperators,
|
|
66847
67193
|
"equals"
|
|
@@ -66870,6 +67216,7 @@ var authorizedOperators = [
|
|
|
66870
67216
|
...arrayAuthorizedOperators,
|
|
66871
67217
|
...mapAuthorizedOperators
|
|
66872
67218
|
];
|
|
67219
|
+
var NullFilterValueSchema = BooleanSchema.or(external_exports.literal("")).optional();
|
|
66873
67220
|
|
|
66874
67221
|
// ../hyperline-lib/build/http/dto/state.js
|
|
66875
67222
|
var StateSchema = external_exports.enum(usStates).openapi({
|
|
@@ -67001,9 +67348,13 @@ import multer2 from "multer";
|
|
|
67001
67348
|
// ../hyperline-lib/build/httpRouter/file.js
|
|
67002
67349
|
import helmet from "helmet";
|
|
67003
67350
|
|
|
67004
|
-
// ../hyperline-lib/build/publicApi/auth/
|
|
67351
|
+
// ../hyperline-lib/build/publicApi/auth/apiKey.js
|
|
67005
67352
|
import { randomBytes as randomBytes2, scryptSync } from "node:crypto";
|
|
67006
67353
|
|
|
67354
|
+
// ../hyperline-lib/build/publicApi/auth/apiKeyHashCache.js
|
|
67355
|
+
import { createHash as createHash4 } from "node:crypto";
|
|
67356
|
+
var TTL_MS = 5 * 6e4;
|
|
67357
|
+
|
|
67007
67358
|
// ../hyperline-mcp/build/requestBuilder.js
|
|
67008
67359
|
function buildRequestConfig(path2, args, method, queryParamKeys = []) {
|
|
67009
67360
|
const { url: url2, usedKeys } = replacePathParams(path2, args);
|