conduyt 1.25.0 → 1.26.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 +26 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2388,6 +2388,32 @@ reports
2388
2388
  params.set("attributionDays", opts.attributionDays);
2389
2389
  return client.get(`/api/v1/reports/sms-drip-conversion?${params.toString()}`);
2390
2390
  }));
2391
+ reports
2392
+ .command("speed-to-lead")
2393
+ .description("Speed to lead: time from a new lead to the first call, text, email or note by a person inside the CRM (median, p90, within 5/15 min and 1/4/24 h, never), by assigned rep, by lead source and by who touched; spans clamp to 90 days")
2394
+ .option("--from <iso>", "window start (default: 90 days before --to)")
2395
+ .option("--to <iso>", "window end (default: now)")
2396
+ .option("--assigned-to <id>", "only leads assigned to this user")
2397
+ .option("--sources <list>", "comma-separated exact contact source values; __none__ adds contacts with no source")
2398
+ .option("--smart-list <id>", "only contacts in this smart list")
2399
+ .action(run(async (client, opts) => {
2400
+ const params = new URLSearchParams();
2401
+ if (opts.from)
2402
+ params.set("from", opts.from);
2403
+ if (opts.to)
2404
+ params.set("to", opts.to);
2405
+ if (opts.assignedTo) {
2406
+ assertUuid(opts.assignedTo, "user id");
2407
+ params.set("assignedTo", opts.assignedTo);
2408
+ }
2409
+ if (opts.sources)
2410
+ params.set("sources", opts.sources);
2411
+ if (opts.smartList) {
2412
+ assertUuid(opts.smartList, "smart list id");
2413
+ params.set("smartListId", opts.smartList);
2414
+ }
2415
+ return client.get(`/api/v1/reports/speed-to-lead?${params.toString()}`);
2416
+ }));
2391
2417
  reports
2392
2418
  .command("schedule-delete <sid>")
2393
2419
  .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.25.0",
3
+ "version": "1.26.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",