conduyt 1.46.0 → 1.47.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 +8 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3298,8 +3298,9 @@ smartViews
|
|
|
3298
3298
|
.option("--max-attempts <n>", "stop after N calls to a lead, ever (1-20)")
|
|
3299
3299
|
.option("--per-day <n>", "most calls to one lead per account-local day (1-20); pass 'none' to remove the daily cap")
|
|
3300
3300
|
.option("--cooldown <minutes>", "minutes to wait between calls to the same lead (0-10080)")
|
|
3301
|
-
.option("--include-unassigned", "also hand out leads nobody owns yet (shared pool
|
|
3301
|
+
.option("--include-unassigned", "also hand out leads nobody owns yet (shared pool)")
|
|
3302
3302
|
.option("--assigned-only", "the rep's own leads only (turns the shared pool off)")
|
|
3303
|
+
.option("--assign-on <when>", "shared pool: when a pool lead becomes the rep's — handout (default) or disposition (only when the rep saves a disposition)")
|
|
3303
3304
|
.option("--schedule <json>", 'retry schedule JSON, e.g. \'[{"attemptNumber":1,"delayMinutes":0},{"attemptNumber":2,"delayMinutes":60}]\'')
|
|
3304
3305
|
.action(run(async (client, id, opts) => {
|
|
3305
3306
|
assertUuid(id, "smart view id");
|
|
@@ -3316,6 +3317,12 @@ smartViews
|
|
|
3316
3317
|
body.dialIncludeUnassigned = true;
|
|
3317
3318
|
if (opts.assignedOnly)
|
|
3318
3319
|
body.dialIncludeUnassigned = false;
|
|
3320
|
+
if (opts.assignOn !== undefined) {
|
|
3321
|
+
const when = opts.assignOn.trim().toLowerCase();
|
|
3322
|
+
if (when !== "handout" && when !== "disposition")
|
|
3323
|
+
throw new Error("--assign-on must be handout or disposition.");
|
|
3324
|
+
body.dialPoolAssignOn = when;
|
|
3325
|
+
}
|
|
3319
3326
|
const intFlag = (raw, flag, min, max) => {
|
|
3320
3327
|
if (raw === undefined)
|
|
3321
3328
|
return undefined;
|
package/package.json
CHANGED