conduyt 1.28.0 → 1.29.0

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.
Files changed (2) hide show
  1. package/dist/index.js +18 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2488,6 +2488,24 @@ reports
2488
2488
  }
2489
2489
  return client.get(`/api/v1/reports/speed-to-lead?${params.toString()}`);
2490
2490
  }));
2491
+ reports
2492
+ .command("funnel")
2493
+ .description("Stage funnel for one pipeline: deals that entered each stage in the window (created in it or moved into it) and what happened to them so far (advanced, lost, moved back, handed off to another pipeline, still there; the five add up to the entries) with median days per stage, plus the cohort of deals created in the window by where they sit now. Built from recorded stage moves, never from a snapshot. Windows clamp to 90 days.")
2494
+ .requiredOption("--pipeline <id>", "the pipeline to report on")
2495
+ .option("--from <iso>", "window start (default: 90 days before --to)")
2496
+ .option("--to <iso>", "window end (default: now)")
2497
+ .option("--range <key>", "a shared dashboard range key (today, week, month, quarter, year, last_30_days, ...) instead of --from/--to")
2498
+ .action(run(async (client, opts) => {
2499
+ assertUuid(opts.pipeline, "pipeline id");
2500
+ const params = new URLSearchParams({ pipelineId: opts.pipeline });
2501
+ if (opts.from)
2502
+ params.set("from", opts.from);
2503
+ if (opts.to)
2504
+ params.set("to", opts.to);
2505
+ if (opts.range)
2506
+ params.set("dateRange", opts.range);
2507
+ return client.get(`/api/v1/reports/funnel?${params.toString()}`);
2508
+ }));
2491
2509
  reports
2492
2510
  .command("schedule-delete <sid>")
2493
2511
  .description("Remove a schedule (past deliveries stay downloadable until they expire)")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "conduyt",
3
- "version": "1.28.0",
3
+ "version": "1.29.0",
4
4
  "description": "Command-line interface for Conduyt CRM — manage contacts, deals, pipelines, and run insight queries from your terminal.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",