conduyt 1.46.0 → 1.48.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 +11 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -595,7 +595,9 @@ pipelines
|
|
|
595
595
|
// ---- search ----
|
|
596
596
|
program
|
|
597
597
|
.command("search <query>")
|
|
598
|
-
.description("Search across the CRM"
|
|
598
|
+
.description("Search across the CRM. Names, emails, phones and deal titles match from 2 characters; notes, messages, activities, " +
|
|
599
|
+
"tasks and documents from 3 (`skippedLegs` lists the text legs a shorter term did not reach). Each text leg runs under a " +
|
|
600
|
+
"3-second budget; one cut at the budget is left out and named in `partialLegs` (`partial: true`).")
|
|
599
601
|
.option("--limit <n>", "max results")
|
|
600
602
|
.action(run(async (client, query, opts) => client.get(`/api/v1/search${buildQuery({ q: query, limit: opts.limit })}`)));
|
|
601
603
|
// ---- insights ----
|
|
@@ -3298,8 +3300,9 @@ smartViews
|
|
|
3298
3300
|
.option("--max-attempts <n>", "stop after N calls to a lead, ever (1-20)")
|
|
3299
3301
|
.option("--per-day <n>", "most calls to one lead per account-local day (1-20); pass 'none' to remove the daily cap")
|
|
3300
3302
|
.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
|
|
3303
|
+
.option("--include-unassigned", "also hand out leads nobody owns yet (shared pool)")
|
|
3302
3304
|
.option("--assigned-only", "the rep's own leads only (turns the shared pool off)")
|
|
3305
|
+
.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
3306
|
.option("--schedule <json>", 'retry schedule JSON, e.g. \'[{"attemptNumber":1,"delayMinutes":0},{"attemptNumber":2,"delayMinutes":60}]\'')
|
|
3304
3307
|
.action(run(async (client, id, opts) => {
|
|
3305
3308
|
assertUuid(id, "smart view id");
|
|
@@ -3316,6 +3319,12 @@ smartViews
|
|
|
3316
3319
|
body.dialIncludeUnassigned = true;
|
|
3317
3320
|
if (opts.assignedOnly)
|
|
3318
3321
|
body.dialIncludeUnassigned = false;
|
|
3322
|
+
if (opts.assignOn !== undefined) {
|
|
3323
|
+
const when = opts.assignOn.trim().toLowerCase();
|
|
3324
|
+
if (when !== "handout" && when !== "disposition")
|
|
3325
|
+
throw new Error("--assign-on must be handout or disposition.");
|
|
3326
|
+
body.dialPoolAssignOn = when;
|
|
3327
|
+
}
|
|
3319
3328
|
const intFlag = (raw, flag, min, max) => {
|
|
3320
3329
|
if (raw === undefined)
|
|
3321
3330
|
return undefined;
|
package/package.json
CHANGED