conduyt 1.24.0 → 1.25.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
@@ -2362,6 +2362,32 @@ reports
2362
2362
  throw new Error("Pass at least one change.");
2363
2363
  return client.patch(`/api/v1/reports/subscriptions/${sid}`, body);
2364
2364
  }));
2365
+ reports
2366
+ .command("sms-drip-conversion")
2367
+ .description("Conversion by drip step for external-workflow SMS drips: texted / replied / booked / moved forward / won per text, credited last-touch within the attribution window, the next text from any drip closes it (spans clamp to 90 days; the response notes list the one approximation)")
2368
+ .option("--from <iso>", "window start (default: 90 days before --to)")
2369
+ .option("--to <iso>", "window end (default: now)")
2370
+ .option("--automation <id>", "scope to one automation")
2371
+ .option("--smart-list <id>", "scope to contacts in this smart list")
2372
+ .option("--attribution-days <n>", "credit an outcome only within this many days of the text (1-14, default 3)")
2373
+ .action(run(async (client, opts) => {
2374
+ const params = new URLSearchParams();
2375
+ if (opts.from)
2376
+ params.set("from", opts.from);
2377
+ if (opts.to)
2378
+ params.set("to", opts.to);
2379
+ if (opts.automation) {
2380
+ assertUuid(opts.automation, "automation id");
2381
+ params.set("automationId", opts.automation);
2382
+ }
2383
+ if (opts.smartList) {
2384
+ assertUuid(opts.smartList, "smart list id");
2385
+ params.set("smartListId", opts.smartList);
2386
+ }
2387
+ if (opts.attributionDays !== undefined)
2388
+ params.set("attributionDays", opts.attributionDays);
2389
+ return client.get(`/api/v1/reports/sms-drip-conversion?${params.toString()}`);
2390
+ }));
2365
2391
  reports
2366
2392
  .command("schedule-delete <sid>")
2367
2393
  .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.24.0",
3
+ "version": "1.25.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",