conduyt 1.30.0 → 1.32.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.
- package/dist/index.js +54 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2488,6 +2488,60 @@ reports
|
|
|
2488
2488
|
}
|
|
2489
2489
|
return client.get(`/api/v1/reports/speed-to-lead?${params.toString()}`);
|
|
2490
2490
|
}));
|
|
2491
|
+
reports
|
|
2492
|
+
.command("calls")
|
|
2493
|
+
.description("Unified call report: every call whatever carried it (dialer, Twilio, Project Blue): answered, connected, conversations, talk time, voicemail, missed, appointments, closed by user, transport, direction, disposition, day and hour")
|
|
2494
|
+
.option("--from <iso>", "window start (default: 366 days before --to)")
|
|
2495
|
+
.option("--to <iso>", "window end (default: now)")
|
|
2496
|
+
.option("--user <id>", "only calls placed or taken by this user")
|
|
2497
|
+
.option("--transport <value>", "exact transport: twilio | project_blue | project_blue_twilio")
|
|
2498
|
+
.option("--direction <dir>", "inbound | outbound")
|
|
2499
|
+
.action(run(async (client, opts) => {
|
|
2500
|
+
const params = new URLSearchParams();
|
|
2501
|
+
if (opts.from)
|
|
2502
|
+
params.set("from", opts.from);
|
|
2503
|
+
if (opts.to)
|
|
2504
|
+
params.set("to", opts.to);
|
|
2505
|
+
if (opts.user) {
|
|
2506
|
+
assertUuid(opts.user, "user id");
|
|
2507
|
+
params.set("userId", opts.user);
|
|
2508
|
+
}
|
|
2509
|
+
if (opts.transport)
|
|
2510
|
+
params.set("transport", opts.transport);
|
|
2511
|
+
if (opts.direction) {
|
|
2512
|
+
if (!["inbound", "outbound"].includes(opts.direction))
|
|
2513
|
+
throw new Error("--direction must be inbound or outbound");
|
|
2514
|
+
params.set("direction", opts.direction);
|
|
2515
|
+
}
|
|
2516
|
+
return client.get(`/api/v1/reports/call-performance?${params.toString()}`);
|
|
2517
|
+
}));
|
|
2518
|
+
reports
|
|
2519
|
+
.command("appointments")
|
|
2520
|
+
.description("Appointment report: booked, held, no-shows and show rate (past appointments only), cancellations, reschedules and upcoming, by assigned user, calendar or booking page, lead source, channel and day; window by appointment time (default) or booking time")
|
|
2521
|
+
.option("--from <iso>", "window start (default: 366 days before --to)")
|
|
2522
|
+
.option("--to <iso>", "window end (default: now)")
|
|
2523
|
+
.option("--basis <basis>", "start (appointment time, default) | booked (booking time)")
|
|
2524
|
+
.option("--assigned-to <id>", "only appointments assigned to this user")
|
|
2525
|
+
.option("--sources <list>", "comma-separated exact contact source values; __none__ adds appointments with no source or no contact")
|
|
2526
|
+
.action(run(async (client, opts) => {
|
|
2527
|
+
const params = new URLSearchParams();
|
|
2528
|
+
if (opts.from)
|
|
2529
|
+
params.set("from", opts.from);
|
|
2530
|
+
if (opts.to)
|
|
2531
|
+
params.set("to", opts.to);
|
|
2532
|
+
if (opts.basis) {
|
|
2533
|
+
if (!["start", "booked"].includes(opts.basis))
|
|
2534
|
+
throw new Error("--basis must be start or booked");
|
|
2535
|
+
params.set("basis", opts.basis);
|
|
2536
|
+
}
|
|
2537
|
+
if (opts.assignedTo) {
|
|
2538
|
+
assertUuid(opts.assignedTo, "user id");
|
|
2539
|
+
params.set("assignedTo", opts.assignedTo);
|
|
2540
|
+
}
|
|
2541
|
+
if (opts.sources)
|
|
2542
|
+
params.set("sources", opts.sources);
|
|
2543
|
+
return client.get(`/api/v1/reports/appointments?${params.toString()}`);
|
|
2544
|
+
}));
|
|
2491
2545
|
reports
|
|
2492
2546
|
.command("funnel")
|
|
2493
2547
|
.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.")
|
package/package.json
CHANGED