kenso 0.1.58 → 0.1.60
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/kenso.js +2 -2
- package/dist/operations.json +1 -1
- package/docs/crm.md +16 -0
- package/docs/reference.md +11 -5
- package/package.json +2 -2
package/docs/crm.md
CHANGED
|
@@ -75,6 +75,8 @@ kenso accounts search --data '{"where": {"match": "all", "conditions": [{"field"
|
|
|
75
75
|
- `countBy` (`stage`, `stageGroup`) adds `counts` to the output: every value with the number of matching accounts that hold it, whatever the page. The output is then one object: `data`, `pagination` and `counts`.
|
|
76
76
|
- `filters` and `where` narrow the accounts.
|
|
77
77
|
|
|
78
|
+
An account's timeline pages the same way. `kenso accounts activity 812` returns the newest 100 earlier rows and, when older ones exist, `data.nextCursor`. Pass it back as `--cursor` (with the same `--category`) for the rows before them, until a page comes without one.
|
|
79
|
+
|
|
78
80
|
## Edit accounts, people and opportunities
|
|
79
81
|
|
|
80
82
|
Apart from `accounts bulk-update`, which sets one `accountType` on up to 500 accounts, there is no bulk edit route, so run the generated `update` command once per row with `--each`. Columns are the command's flags by API name or flag name, and the id column fills the route:
|
|
@@ -93,6 +95,20 @@ accountId,stage,ownerMemberId,overwritePinned
|
|
|
93
95
|
|
|
94
96
|
A row that changes a field someone pinned in the app fails as a whole (`409 conflict`, `pinned_by_user`: nothing on that record changes, the other fields of the row included), unless the row sets `overwritePinned` to `true` (or you pass `--overwrite-pinned`, only with the person's OK). Every flag of an update command: `kenso accounts update --help`.
|
|
95
97
|
|
|
98
|
+
## Search opportunities
|
|
99
|
+
|
|
100
|
+
`kenso opportunities search` works as `accounts search` does: it takes `--search`, `--sort`, `--limit`, `--cursor`, `--all`, and its lists in `--data`.
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
kenso opportunities search --data '{"filters": [{"field": "stageCategory", "operator": "is", "values": ["open"]}]}' --all
|
|
104
|
+
kenso opportunities search --data '{"filters": [{"field": "ownerMemberId", "operator": "is", "values": ["none"]}, {"field": "closeDate", "operator": "is", "values": ["past_due", "next_30_days"]}]}'
|
|
105
|
+
kenso opportunities search --limit 1 --data '{"countBy": ["stage", "ownerMemberId"]}' # how many opportunities hold each value
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
- **`filters`** is a list of `{field, operator, values}`, all of which must hold. Fields: `stage` (a stage key), `stageCategory` (`open`, `won`, `lost`), `ownerMemberId`, `closeDate` (`past_due`, `next_30_days`, `later`, `none`) and `sourceCampaignId`. `operator` is `is` or `is_not`; the values of one condition are OR. `none` in `values` matches an opportunity with no owner, no source campaign or no close date.
|
|
109
|
+
- **`countBy`** takes the same field names and adds `counts` to the output: per field, every value with the number of matching opportunities that hold it.
|
|
110
|
+
- `--account-id` keeps the search to one account. `closeDate` counts days in the member's app time zone.
|
|
111
|
+
|
|
96
112
|
## Write research you gathered
|
|
97
113
|
|
|
98
114
|
`accounts write-research` and `people write-research` store research you gathered outside Kenso as the record's latest research (`PUT /v1/accounts/{accountId}/research`, `PUT /v1/people/{personId}/research`). The Research tab shows it like a Ken run, with `trigger: agent` and `researchedAt` now. Nothing is charged, and no account or person field changes: set an account's own `fitScore`, `whyNow` or `angle` with `accounts update`. They need the `accounts_research` flag and accounts edit.
|
package/docs/reference.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Kenso CLI command reference
|
|
2
2
|
|
|
3
|
-
Generated from kenso 0.1.
|
|
3
|
+
Generated from kenso 0.1.60 (API contracts b1ee089ab227) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
1630 commands, one entry each: summary, API route, feature gate and flag names. Beta commands work only on workspaces with their feature flag; `kenso describe` hides the ones yours cannot use. Every command also takes the global flags below. A command's notes, flag descriptions, body schema and examples: `kenso <resource> <action> --help`, or `kenso describe <resource> <action>` as JSON.
|
|
6
6
|
|
|
7
7
|
## Global flags
|
|
8
8
|
|
|
@@ -302,7 +302,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
|
|
|
302
302
|
- [onboarding-builds](#onboarding-builds) (3)
|
|
303
303
|
- [onboarding-connect-plan](#onboarding-connect-plan) (1)
|
|
304
304
|
- [onboarding-next-step](#onboarding-next-step) (1)
|
|
305
|
-
- [opportunities](#opportunities) (
|
|
305
|
+
- [opportunities](#opportunities) (10)
|
|
306
306
|
- [opportunity-people](#opportunity-people) (4)
|
|
307
307
|
- [opportunity-settings](#opportunity-settings) (3)
|
|
308
308
|
- [opportunity-stages](#opportunity-stages) (2)
|
|
@@ -620,9 +620,9 @@ Flags: `--account-view-id` (required), `--name`, `--is-active`, `--no-is-active`
|
|
|
620
620
|
|
|
621
621
|
### kenso accounts activity
|
|
622
622
|
|
|
623
|
-
Return an account's activity timeline: what is planned next and what already happened. `GET /v1/accounts/{accountId}/activity
|
|
623
|
+
Return an account's activity timeline: what is planned next and what already happened. `GET /v1/accounts/{accountId}/activity` (a list). Beta: needs `accounts`.
|
|
624
624
|
|
|
625
|
-
Flags: `--account-id` (required), `--category`, `--limit`, `--each`, `--concurrency`.
|
|
625
|
+
Flags: `--account-id` (required), `--category`, `--cursor`, `--limit`, `--all`, `--each`, `--concurrency`.
|
|
626
626
|
|
|
627
627
|
### kenso accounts add-to-campaign
|
|
628
628
|
|
|
@@ -7234,6 +7234,12 @@ List opportunities in the current workspace. `GET /v1/opportunities` (a list). B
|
|
|
7234
7234
|
|
|
7235
7235
|
Flags: `--account-id`, `--close-date-after`, `--close-date-before`, `--cursor`, `--limit`, `--owner-member-id`, `--search`, `--sort`, `--source-campaign-id`, `--stage`, `--stage-category`, `--stale-days`, `--all`, `--each`, `--concurrency`.
|
|
7236
7236
|
|
|
7237
|
+
### kenso opportunities search
|
|
7238
|
+
|
|
7239
|
+
Search opportunities in the current workspace with filter conditions, and count them per value. `POST /v1/opportunities/search` (a list). Beta: needs `opportunities`.
|
|
7240
|
+
|
|
7241
|
+
Flags: `--account-id`, `--search`, `--time-zone`, `--sort`, `--limit`, `--cursor`, `--include-total`, `--no-include-total`, `--data`, `--all`, `--each`, `--concurrency`.
|
|
7242
|
+
|
|
7237
7243
|
### kenso opportunities stage-history
|
|
7238
7244
|
|
|
7239
7245
|
Show a deal's stage history: each stage, when, who moved it and how long it sat there. `GET /v1/opportunities/{opportunityId}/stage-history`. Beta: needs `opportunities`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kenso",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.60",
|
|
4
4
|
"description": "The Kenso CLI: bulk lead, CRM and Studio work for people and coding agents",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"typescript-eslint": "8.71.1",
|
|
50
50
|
"vitest": "5.0.3"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "0ec8e64f74cc31a02ad515e670f9e28144bd06bf"
|
|
53
53
|
}
|