feat(bill): expose raw filterBy, select, distinct, and join in search API and CLI
This commit is contained in:
1 parent
ca713cfafc
commit
139e50395d
4 files changed
+38
-3
No files matched your search
@@ -172,6 +172,9 @@ export async function handleBillCommand(
|
||||
const endDate = stringOption(parsed.options, ["end-date", "endDate", "to", "end"]);
|
||||
const rawOrder = stringOption(parsed.options, ["order", "sort", "direction"]);
|
||||
const order = rawOrder && /asc/i.test(rawOrder) ? "ASC" : "DESC";
|
||||
const filterBy = stringOption(parsed.options, ["filter-by", "filterBy", "filter"]);
|
||||
const select = stringOption(parsed.options, ["select", "fields"]);
|
||||
const distinct = booleanOption(parsed.options, ["distinct"]);
|
||||
|
||||
const result = await searchAndFormatBills(await getClient(), corpId, {
|
||||
code,
|
||||
@@ -183,6 +186,9 @@ export async function handleBillCommand(
|
||||
startDate,
|
||||
endDate,
|
||||
order,
|
||||
filterBy,
|
||||
select,
|
||||
distinct,
|
||||
});
|
||||
|
||||
if (runtime.jsonMode) {
|
||||
|
||||
Reference in new issue
Block a user