conduyt 1.74.0 → 1.75.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 +12 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4027,16 +4027,17 @@ dialer
|
|
|
4027
4027
|
}));
|
|
4028
4028
|
dialer
|
|
4029
4029
|
.command("settings")
|
|
4030
|
-
.description("Show the account's Smart Dialing policy (GET /dialer/settings, dialer scope): autoAdvanceEnabled, pauseSeconds, advanceOn (disposition | timer), openLeadOnDial (the lead's record opens as each Smart Dialing call goes out), smartDialCallerId (local_presence = an area-code match from the number pool, the rep's own line when no pool exists; did = always the rep's own line), plus localPresenceConfigured.")
|
|
4030
|
+
.description("Show the account's Smart Dialing policy (GET /dialer/settings, dialer scope): autoAdvanceEnabled, pauseSeconds, advanceOn (disposition | timer), openLeadOnDial (the lead's record opens as each Smart Dialing call goes out), smartDialCallerId (local_presence = an area-code match from the number pool, the rep's own line when no pool exists; did = always the rep's own line), wrapupAutoReleaseSeconds (seconds of continuous wrap-up after which a rep returns to Available automatically; 0 = off, otherwise 30 to 3600; default 300), plus localPresenceConfigured.")
|
|
4031
4031
|
.action(run(async (client) => client.get("/api/v1/dialer/settings")));
|
|
4032
4032
|
dialer
|
|
4033
4033
|
.command("set-settings")
|
|
4034
|
-
.description("Change the account's Smart Dialing policy (PATCH /dialer/settings, settings scope). Pass only what changes: --auto-advance on|off, --pause-seconds 1-60, --advance-on disposition|timer, --open-lead on|off (the lead's record opens as each Smart Dialing call goes out), --calls-from local_presence|did.")
|
|
4034
|
+
.description("Change the account's Smart Dialing policy (PATCH /dialer/settings, settings scope). Pass only what changes: --auto-advance on|off, --pause-seconds 1-60, --advance-on disposition|timer, --open-lead on|off (the lead's record opens as each Smart Dialing call goes out), --calls-from local_presence|did, --wrapup-seconds 0|30-3600 (seconds of continuous wrap-up after which a rep returns to Available automatically; 0 = off, otherwise 30-3600).")
|
|
4035
4035
|
.option("--auto-advance <on|off>", "start the next dial automatically after a call")
|
|
4036
4036
|
.option("--pause-seconds <n>", "seconds between calls when auto-advance is on (1-60)")
|
|
4037
4037
|
.option("--advance-on <mode>", "disposition | timer")
|
|
4038
4038
|
.option("--open-lead <on|off>", "open the lead's record as each Smart Dialing call goes out")
|
|
4039
4039
|
.option("--calls-from <line>", "local_presence | did")
|
|
4040
|
+
.option("--wrapup-seconds <n>", "seconds of continuous wrap-up after which a rep returns to Available automatically: 0 = off, otherwise 30-3600")
|
|
4040
4041
|
.action(run(async (client, opts) => {
|
|
4041
4042
|
const body = {};
|
|
4042
4043
|
if (opts.autoAdvance !== undefined)
|
|
@@ -4061,8 +4062,16 @@ dialer
|
|
|
4061
4062
|
throw new Error(`--calls-from must be one of ${SMART_DIAL_CALLER_IDS.join(", ")}.`);
|
|
4062
4063
|
body.smartDialCallerId = line;
|
|
4063
4064
|
}
|
|
4065
|
+
if (opts.wrapupSeconds !== undefined) {
|
|
4066
|
+
// digits only: Number() would read "" as 0 (switching the timer off) and "1e2" / "0x1e" / "30.0" as numbers
|
|
4067
|
+
const raw = opts.wrapupSeconds.trim();
|
|
4068
|
+
const n = /^\d{1,5}$/.test(raw) ? Number(raw) : NaN;
|
|
4069
|
+
if (!(n === 0 || (n >= 30 && n <= 3600)))
|
|
4070
|
+
throw new Error("--wrapup-seconds must be 0 (off) or a whole number of seconds from 30 to 3600.");
|
|
4071
|
+
body.wrapupAutoReleaseSeconds = n;
|
|
4072
|
+
}
|
|
4064
4073
|
if (Object.keys(body).length === 0)
|
|
4065
|
-
throw new Error("Nothing to change: pass at least one of --auto-advance, --pause-seconds, --advance-on, --open-lead, --calls-from.");
|
|
4074
|
+
throw new Error("Nothing to change: pass at least one of --auto-advance, --pause-seconds, --advance-on, --open-lead, --calls-from, --wrapup-seconds.");
|
|
4066
4075
|
return client.patch("/api/v1/dialer/settings", body);
|
|
4067
4076
|
}));
|
|
4068
4077
|
dialer
|
package/package.json
CHANGED