conduyt 1.39.0 → 1.40.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 +8 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2780,6 +2780,8 @@ smartViews
2780
2780
  .option("--max-attempts <n>", "stop after N calls to a lead, ever (1-20)")
2781
2781
  .option("--per-day <n>", "most calls to one lead per account-local day (1-20); pass 'none' to remove the daily cap")
2782
2782
  .option("--cooldown <minutes>", "minutes to wait between calls to the same lead (0-10080)")
2783
+ .option("--include-unassigned", "also hand out leads nobody owns yet (shared pool; the lead is assigned to the rep at hand-out)")
2784
+ .option("--assigned-only", "the rep's own leads only (turns the shared pool off)")
2783
2785
  .option("--schedule <json>", 'retry schedule JSON, e.g. \'[{"attemptNumber":1,"delayMinutes":0},{"attemptNumber":2,"delayMinutes":60}]\'')
2784
2786
  .action(run(async (client, id, opts) => {
2785
2787
  assertUuid(id, "smart view id");
@@ -2790,6 +2792,12 @@ smartViews
2790
2792
  body.dialEnabled = true;
2791
2793
  if (opts.disable)
2792
2794
  body.dialEnabled = false;
2795
+ if (opts.includeUnassigned && opts.assignedOnly)
2796
+ throw new Error("--include-unassigned and --assigned-only are exclusive");
2797
+ if (opts.includeUnassigned)
2798
+ body.dialIncludeUnassigned = true;
2799
+ if (opts.assignedOnly)
2800
+ body.dialIncludeUnassigned = false;
2793
2801
  const intFlag = (raw, flag, min, max) => {
2794
2802
  if (raw === undefined)
2795
2803
  return undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "conduyt",
3
- "version": "1.39.0",
3
+ "version": "1.40.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",