@wavyx/pdcli 0.10.0 → 0.11.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 (47) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/README.md +7 -1
  3. package/oclif.manifest.json +6369 -1598
  4. package/package.json +29 -2
  5. package/src/commands/activity/type/list.js +36 -0
  6. package/src/commands/deal/convert.js +112 -0
  7. package/src/commands/deal/follower/add.js +31 -0
  8. package/src/commands/deal/follower/list.js +38 -0
  9. package/src/commands/deal/follower/remove.js +44 -0
  10. package/src/commands/deal/list.js +7 -4
  11. package/src/commands/deal/participant/add.js +31 -0
  12. package/src/commands/deal/participant/list.js +46 -0
  13. package/src/commands/deal/participant/remove.js +53 -0
  14. package/src/commands/deal/summary.js +69 -0
  15. package/src/commands/field/create.js +72 -0
  16. package/src/commands/field/delete.js +56 -0
  17. package/src/commands/field/get.js +10 -1
  18. package/src/commands/field/list.js +10 -1
  19. package/src/commands/field/option/add.js +49 -0
  20. package/src/commands/field/option/remove.js +72 -0
  21. package/src/commands/field/update.js +53 -0
  22. package/src/commands/file/delete.js +41 -0
  23. package/src/commands/file/update.js +39 -0
  24. package/src/commands/filter/delete.js +41 -0
  25. package/src/commands/lead/convert.js +103 -0
  26. package/src/commands/note/comment/add.js +31 -0
  27. package/src/commands/note/comment/delete.js +51 -0
  28. package/src/commands/note/comment/list.js +43 -0
  29. package/src/commands/note/comment/update.js +37 -0
  30. package/src/commands/org/follower/add.js +31 -0
  31. package/src/commands/org/follower/list.js +41 -0
  32. package/src/commands/org/follower/remove.js +50 -0
  33. package/src/commands/org/relationship/add.js +44 -0
  34. package/src/commands/org/relationship/list.js +52 -0
  35. package/src/commands/org/relationship/remove.js +46 -0
  36. package/src/commands/person/follower/add.js +31 -0
  37. package/src/commands/person/follower/list.js +38 -0
  38. package/src/commands/person/follower/remove.js +48 -0
  39. package/src/commands/project/list.js +10 -4
  40. package/src/commands/search.js +66 -9
  41. package/src/commands/task/create.js +44 -0
  42. package/src/commands/task/delete.js +41 -0
  43. package/src/commands/task/get.js +26 -0
  44. package/src/commands/task/list.js +60 -0
  45. package/src/commands/task/update.js +72 -0
  46. package/src/lib/client.js +19 -0
  47. package/src/lib/fields.js +43 -12
package/CHANGELOG.md CHANGED
@@ -4,6 +4,40 @@ All notable changes to `pdcli` are documented here. Format follows
4
4
  [Keep a Changelog](https://keepachangelog.com/); versions follow
5
5
  [SemVer](https://semver.org/).
6
6
 
7
+ ## [0.11.0] - 2026-06-06
8
+
9
+ ### Added
10
+
11
+ - Custom-field lifecycle: `field create/update/delete` plus
12
+ `field option add/remove` for enum/set fields (v2 Fields write API).
13
+ Deleting a field or option confirms with a default of No — record
14
+ data stored in it is lost. `field list/get` now also cover `lead`
15
+ and `note` fields.
16
+ - Relations: `deal participant list/add/remove` (the buying
17
+ committee), `deal/person/org follower list/add/remove`, and
18
+ `org relationship list/add/remove` (parent/related hierarchies).
19
+ - `task list/get/create/update/delete` — v2-native project tasks
20
+ (requires the Projects add-on; accounts without it get a clean
21
+ configuration error).
22
+ - Conversions: `lead convert <id>` and `deal convert <id>` (async jobs
23
+ with `--wait` polling and `--timeout-secs`). Converting a deal
24
+ deletes the source deal on success and confirms with a default of
25
+ No.
26
+ - `deal summary` — server-side per-currency totals, weighted values,
27
+ and counts in a single call (`--status/--pipeline/--stage/--filter`).
28
+ - Scoped search: a single `--item-types` value routes `search` to the
29
+ per-entity v2 endpoints; the deal scope adds
30
+ `--status/--person/--org` filters.
31
+ - `deal list --archived` and `project list --archived`.
32
+ - `activity type list` (the `key_string` column feeds
33
+ `activity --type`), `file update/delete`, `filter delete`, and
34
+ `note comment list/add/update/delete`.
35
+
36
+ ### Changed
37
+
38
+ - Every destructive command added in this release confirms with a
39
+ default of No — pressing Enter aborts.
40
+
7
41
  ## [0.10.0] - 2026-06-06
8
42
 
9
43
  ### Added
package/README.md CHANGED
@@ -55,6 +55,7 @@ pdcli deal create --title "Acme renewal" --value 5000 --currency EUR --stage 3
55
55
  pdcli deal update 42 --status won
56
56
  pdcli activity create --subject "Follow up" --type call --due-date 2026-06-10 --deal 42
57
57
  pdcli product create --name "Consulting" --price 150 --currency EUR
58
+ pdcli lead convert <id> --wait # promote a lead to a deal; --wait polls the async job
58
59
  pdcli deal delete 42 # asks first; --yes to skip
59
60
  ```
60
61
 
@@ -63,13 +64,17 @@ Custom fields by **human name** — labels and option IDs resolve automatically:
63
64
  ```bash
64
65
  pdcli deal create --title "Sized" --field "Deal Size=Large" --field "Score=4.5"
65
66
  pdcli deal update 42 --body '{"probability":75}' # raw JSON escape hatch
67
+ pdcli field create deal --name "Budget" --type double # manage the field schema itself
66
68
  ```
67
69
 
68
- ## Line items
70
+ ## Line items & relations
69
71
 
70
72
  ```bash
71
73
  pdcli deal product add 42 --product 10 --price 150 --quantity 4 # attach a product to a deal
72
74
  pdcli deal product list 42 # lines, with server-computed sums
75
+ pdcli deal participant add 42 --person 10 # add to the buying committee
76
+ pdcli deal follower add 42 --user 5 # follow a deal/person/org
77
+ pdcli org relationship add --type parent --owner 1481 --linked 1480 # org hierarchy
73
78
  ```
74
79
 
75
80
  ## Bulk
@@ -85,6 +90,7 @@ pdcli person import people.csv # custom fields by name
85
90
  ## Analytics & housekeeping
86
91
 
87
92
  ```bash
93
+ pdcli deal summary --status open # server-side per-currency totals, weighted, count
88
94
  pdcli metrics velocity --period 90d # the Sales Velocity Equation, in your terminal
89
95
  pdcli funnel --pipeline 1 # stage-to-stage conversion
90
96
  pdcli funnel --exact # mine real stage transitions per deal (one call each)