conduyt 1.9.0 → 1.10.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 +20 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1362,6 +1362,12 @@ users
1362
1362
  .option("--email <email>", "email")
1363
1363
  .option("--role <role>", "member | admin | owner")
1364
1364
  .option("--phone <phone>", "phone")
1365
+ .option("--position <text>", "rep-profile position/title, merge-taggable as {{user.position}} (pass '' to clear)")
1366
+ .option("--mobile <phone>", "rep-profile mobile phone, merge-taggable as {{user.mobilePhone}} (pass '' to clear)")
1367
+ .option("--custom1 <text>", "rep-profile custom 1, {{user.custom1}} (pass '' to clear)")
1368
+ .option("--custom2 <text>", "rep-profile custom 2, {{user.custom2}} (pass '' to clear)")
1369
+ .option("--custom3 <text>", "rep-profile custom 3, {{user.custom3}} (pass '' to clear)")
1370
+ .option("--custom4 <text>", "rep-profile custom 4, {{user.custom4}} (pass '' to clear)")
1365
1371
  .option("--json <json>", "full JSON body, merged over the flags")
1366
1372
  .action(run(async (client, id, opts) => {
1367
1373
  assertUuid(id, "user id");
@@ -1376,6 +1382,20 @@ users
1376
1382
  body.role = opts.role;
1377
1383
  if (opts.phone !== undefined)
1378
1384
  body.phone = opts.phone;
1385
+ // Rep-profile fields (#42): an explicit empty string clears the field
1386
+ // (the API treats blank as null); omitted flags leave it untouched.
1387
+ if (opts.position !== undefined)
1388
+ body.position = opts.position || null;
1389
+ if (opts.mobile !== undefined)
1390
+ body.mobilePhone = opts.mobile || null;
1391
+ if (opts.custom1 !== undefined)
1392
+ body.custom1 = opts.custom1 || null;
1393
+ if (opts.custom2 !== undefined)
1394
+ body.custom2 = opts.custom2 || null;
1395
+ if (opts.custom3 !== undefined)
1396
+ body.custom3 = opts.custom3 || null;
1397
+ if (opts.custom4 !== undefined)
1398
+ body.custom4 = opts.custom4 || null;
1379
1399
  if (opts.json !== undefined)
1380
1400
  Object.assign(body, jsonArg(opts.json, "--json"));
1381
1401
  if (Object.keys(body).length === 0)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "conduyt",
3
- "version": "1.9.0",
3
+ "version": "1.10.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",