kenso 0.1.115 → 0.1.116
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/kenso.js +5 -3
- package/dist/operations.index.json +1 -1
- package/dist/operations.json +1 -1
- package/docs/reference.md +1 -1
- package/package.json +2 -2
package/dist/kenso.js
CHANGED
|
@@ -2477,7 +2477,7 @@ var VERSION;
|
|
|
2477
2477
|
var init_version = __esm({
|
|
2478
2478
|
"src/core/version.ts"() {
|
|
2479
2479
|
"use strict";
|
|
2480
|
-
VERSION = true ? "0.1.
|
|
2480
|
+
VERSION = true ? "0.1.116" : "0.0.0-dev";
|
|
2481
2481
|
}
|
|
2482
2482
|
});
|
|
2483
2483
|
|
|
@@ -14835,7 +14835,7 @@ var init_run2 = __esm({
|
|
|
14835
14835
|
resource: "reports",
|
|
14836
14836
|
action: "run",
|
|
14837
14837
|
summary: "Run a stock pipeline report and print its table",
|
|
14838
|
-
description: `Reads GET /v1/reports/{reportKey} and prints one row per bucket: the bucket's label under the dimension's name (stage, closedAt, sourceCampaignId) and each measure under its key (count, sumAmount, weightedAmount, avgAmount). Amounts are in the workspace currency. The report's title, its finding, the days it covers and the totals are printed to stderr. --full prints the whole answer as one object: headline, finding, stats, chart, the stored query, and result with each bucket's filter for opportunities search. Reports: ${REPORTS.join(", ")}; kenso reports list prints the ones your workspace has now.`,
|
|
14838
|
+
description: `Reads GET /v1/reports/{reportKey} and prints one row per bucket: the bucket's label under the dimension's name (stage, closedAt, sourceCampaignId) and each measure under its key (count, sumAmount, weightedAmount, avgAmount). Amounts are in the workspace currency. The report's title, its finding, the days it covers and the totals are printed to stderr. stage_conversion reads one pipeline: with no --pipeline in a workspace with several, the default one, named after the title. --full prints the whole answer as one object: headline, finding, stats, chart, the stored query, and result with each bucket's filter for opportunities search. Reports: ${REPORTS.join(", ")}; kenso reports list prints the ones your workspace has now.`,
|
|
14839
14839
|
flags: {
|
|
14840
14840
|
period: {
|
|
14841
14841
|
type: "string",
|
|
@@ -14886,7 +14886,9 @@ var init_run2 = __esm({
|
|
|
14886
14886
|
}
|
|
14887
14887
|
const { result } = data;
|
|
14888
14888
|
const names = result.dimensions.map((d) => d.field);
|
|
14889
|
-
ctx.output.info(
|
|
14889
|
+
ctx.output.info(
|
|
14890
|
+
data.title + (data.pipeline ? `, ${data.pipeline.name} pipeline` : "") + (data.period ? ` (${data.period.from} to ${data.period.to})` : "")
|
|
14891
|
+
);
|
|
14890
14892
|
ctx.output.info(data.finding);
|
|
14891
14893
|
const totals = result.measures.filter((m) => result.totals[m.key] !== void 0).map((m) => `${m.key} ${result.totals[m.key]}`);
|
|
14892
14894
|
if (totals.length > 0) ctx.output.info(`Totals (${result.currency}): ${totals.join(", ")}`);
|