@dench.com/cli 2.5.0 → 2.5.1

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/crm.ts +8 -3
  2. package/package.json +1 -1
package/crm.ts CHANGED
@@ -3023,7 +3023,9 @@ Fields (columns):
3023
3023
  dench crm fields enum-add <object> <field> <value> [--color HEX] [--position N]
3024
3024
  Appends <value> to the field's enumValues. --color is a hex like
3025
3025
  "#22c55e"; --position is a 0-based insertion index (defaults to append).
3026
- Idempotent: re-adding an existing value only updates its color when given.
3026
+ Idempotent (case-insensitive): re-adding "won" when "Won" exists does
3027
+ NOT create a twin option — the response's `value` echoes the canonical
3028
+ casing; a given --color still updates the existing option's color.
3027
3029
  For a board-backed Status/Stage field this also creates the matching
3028
3030
  kanban column (positioned to match), so you do NOT need a separate
3029
3031
  "statuses set" call.
@@ -3033,8 +3035,11 @@ Fields (columns):
3033
3035
  tint), matching Notion's "remove option, keep history" semantics. A
3034
3036
  matching kanban column is removed too.
3035
3037
  dench crm fields enum-rename <object> <field> <oldValue> <newValue>
3036
- Renames the option AND rewrites every entry that referenced the old
3037
- value (bounded to 1000 rows per call) AND renames matching crmStatuses.
3038
+ Renames the option AND migrates every entry that referenced the old
3039
+ value (complete for indexed enum fields the default via the
3040
+ projection index) AND renames matching crmStatuses. NOTE: saved views
3041
+ whose filters pin the OLD label are not rewritten; update those view
3042
+ filters after a rename or they silently go empty.
3038
3043
  dench crm fields enum-set-color <object> <field> <value> <hex>
3039
3044
  Update the color (e.g. "#3b82f6") for an existing enum option.
3040
3045
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dench.com/cli",
3
- "version": "2.5.0",
3
+ "version": "2.5.1",
4
4
  "description": "Dench agent workspace CLI. v2 unifies auth behind `dench signin`; the legacy `dench login` / `dench onboard` / `dench setup` / `dench what-can-i-do` / `dench register` commands now error with a redirect.",
5
5
  "type": "module",
6
6
  "bin": {