kenso 0.1.170 → 0.1.171
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/CHANGELOG.md +1 -0
- package/dist/discover.json +1 -1
- package/dist/kenso.js +3 -3
- package/dist/operations.index.json +1 -1
- package/dist/operations.json +1 -1
- package/docs/crm.md +9 -1
- package/docs/reference.md +16 -4
- package/package.json +2 -2
package/docs/crm.md
CHANGED
|
@@ -16,6 +16,7 @@ The CRM commands work on Kenso's Accounts lane: accounts (companies), the people
|
|
|
16
16
|
| `opportunities stage-history <id>` | A deal's stage history: each stage, when, who moved it and how long it sat there |
|
|
17
17
|
| `notes list`, `notes add`, `notes edit`, `notes delete` | Notes and comments on accounts, people and deals (needs `record_notes`) |
|
|
18
18
|
| `deleted-accounts list`, `accounts restore --account-id <id>` | The accounts deleted in the last 30 days, and bringing one back |
|
|
19
|
+
| `people restore --person-id <id>`, `opportunities restore --opportunity-id <id>` | Bringing back one person or one deal deleted in the last 30 days |
|
|
19
20
|
| `accounts duplicates`, `accounts merge <id> --into <id>`, `accounts merges list` | The pairs that look like one company, merging a pair, and the log of merges |
|
|
20
21
|
| `export <accounts\|people\|deals>` | The list as CSV: everything, a saved view (`--view <id>`), or what the filters match |
|
|
21
22
|
| `capture status` | Your captured mailbox, its backfill progress and what teammates see of a captured email. Needs the `crm_capture` flag |
|
|
@@ -156,7 +157,7 @@ kenso changes apply --change-id 32
|
|
|
156
157
|
kenso opportunities bulk-delete --ids 71,72,73 --yes
|
|
157
158
|
```
|
|
158
159
|
|
|
159
|
-
`accounts bulk-delete`, `people bulk-delete` and `opportunities bulk-delete` name their records the way `bulk-update` does (`--ids`, `--filter`, `--all`, `--exclude-ids`) and take no `--set`. Without `--yes` they preview: `count`, a `sample`, and `next` is the `kenso changes apply` command that deletes exactly those records. The API itself previews a delete whose body leaves `dryRun` out, so `--yes` sends `dryRun: false`. Each record is deleted as its own `delete` command deletes it, so one that cannot be deleted (a person still on an account) is counted as `failed` and the rest go on. `kenso changes undo` undoes a delete
|
|
160
|
+
`accounts bulk-delete`, `people bulk-delete` and `opportunities bulk-delete` name their records the way `bulk-update` does (`--ids`, `--filter`, `--all`, `--exclude-ids`) and take no `--set`. Without `--yes` they preview: `count`, a `sample`, and `next` is the `kenso changes apply` command that deletes exactly those records. The API itself previews a delete whose body leaves `dryRun` out, so `--yes` sends `dryRun: false`. Each record is deleted as its own `delete` command deletes it, so one that cannot be deleted (a person still on an account) is counted as `failed` and the rest go on. `kenso changes undo` undoes a delete for 30 days: each account, person or deal still deleted is restored, as `kenso accounts restore`, `kenso people restore` or `kenso opportunities restore` restores it. A restore the record refuses (a person whose email a live person holds by now, a deal whose account is deleted) is that row's `undo_failed`.
|
|
160
161
|
|
|
161
162
|
### Follow, stop and undo a change
|
|
162
163
|
|
|
@@ -294,6 +295,13 @@ kenso accounts restore --account-id 812
|
|
|
294
295
|
|
|
295
296
|
A deleted account can be restored for 30 days. `deleted-accounts list` shows each one with who deleted it, `expiresAt` (restore works until then) and what comes back: `personCount`, `opportunityCount` and `touchCount`. `accounts restore --account-id <id>` brings the account back with its domains, its people, its deals and its planned touches, which wait for approval again. Its Studio pages, committee seats and Knowledge facts do not come back: the delete purged them. A domain another account took since stays with that account and is listed in `domainsTaken`. A merged account is not listed and cannot be restored: a merge has no undo. Both commands are behind the `crm_import_export` feature flag (`404` while it is off).
|
|
296
297
|
|
|
298
|
+
```bash
|
|
299
|
+
kenso people restore --person-id 16079
|
|
300
|
+
kenso opportunities restore --opportunity-id 2133
|
|
301
|
+
```
|
|
302
|
+
|
|
303
|
+
`people restore` brings back a person deleted in the last 30 days, with the champion watch the delete ended, on no account as they were when they were deleted. A live person who holds their email, LinkedIn URL or accepted Instagram account by now keeps it: the restore answers `409` `person_exists` with that person's id. `opportunities restore` brings back a deal deleted in the last 30 days onto its account; while the account is deleted it answers `409` `account_deleted`, and `accounts restore` brings back the deals deleted with the account. A deal whose stage was removed since answers `409` `stage_removed`. A merged person, or a deal on a merged account, cannot be restored. Both are behind `crm_import_export` too.
|
|
304
|
+
|
|
297
305
|
## Import a CSV export of another CRM
|
|
298
306
|
|
|
299
307
|
```bash
|
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.171 (API contracts b8a6d5ea7633) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
1997 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
|
|
|
@@ -347,7 +347,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
|
|
|
347
347
|
- [onboarding-builds](#onboarding-builds) (3)
|
|
348
348
|
- [onboarding-connect-plan](#onboarding-connect-plan) (1)
|
|
349
349
|
- [onboarding-next-step](#onboarding-next-step) (1)
|
|
350
|
-
- [opportunities](#opportunities) (
|
|
350
|
+
- [opportunities](#opportunities) (16)
|
|
351
351
|
- [opportunity-people](#opportunity-people) (4)
|
|
352
352
|
- [opportunity-reasons](#opportunity-reasons) (2)
|
|
353
353
|
- [opportunity-settings](#opportunity-settings) (3)
|
|
@@ -357,7 +357,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
|
|
|
357
357
|
- [outbound-event-suggestions](#outbound-event-suggestions) (3)
|
|
358
358
|
- [outbound-events](#outbound-events) (15)
|
|
359
359
|
- [outbound-site](#outbound-site) (7)
|
|
360
|
-
- [people](#people) (
|
|
360
|
+
- [people](#people) (33)
|
|
361
361
|
- [performance-deal](#performance-deal) (8)
|
|
362
362
|
- [permission-catalog](#permission-catalog) (1)
|
|
363
363
|
- [permission-templates](#permission-templates) (5)
|
|
@@ -8635,6 +8635,12 @@ Arguments: `<opportunityId>` (optional).
|
|
|
8635
8635
|
|
|
8636
8636
|
Flags: `--overwrite-pinned`, `--pipeline`, `--reason`, `--stage`.
|
|
8637
8637
|
|
|
8638
|
+
### kenso opportunities restore
|
|
8639
|
+
|
|
8640
|
+
Restore a deleted opportunity. `POST /v1/opportunities/{opportunityId}/restore`. Beta: needs `crm_import_export` and `opportunities`.
|
|
8641
|
+
|
|
8642
|
+
Flags: `--opportunity-id` (required), `--each`, `--concurrency`.
|
|
8643
|
+
|
|
8638
8644
|
### kenso opportunities revenue
|
|
8639
8645
|
|
|
8640
8646
|
Get the revenue from Kenso report. `GET /v1/analytics/revenue`. Beta: needs `revenue_attribution`.
|
|
@@ -9083,6 +9089,12 @@ Research a person: Light from Kenso's own LinkedIn data, Heavy adding the web an
|
|
|
9083
9089
|
|
|
9084
9090
|
Flags: `--person-id` (required), `--mode`, `--data`, `--each`, `--concurrency`.
|
|
9085
9091
|
|
|
9092
|
+
### kenso people restore
|
|
9093
|
+
|
|
9094
|
+
Restore a deleted person. `POST /v1/people/{personId}/restore`. Beta: needs `accounts` and `crm_import_export`.
|
|
9095
|
+
|
|
9096
|
+
Flags: `--person-id` (required), `--each`, `--concurrency`.
|
|
9097
|
+
|
|
9086
9098
|
### kenso people search
|
|
9087
9099
|
|
|
9088
9100
|
Search people in the current workspace with filters. `POST /v1/people/search` (a list). Beta: needs `accounts`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kenso",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.171",
|
|
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": "b2a26cbcc2f8a2fc425a91e1d530d27c4e9809e5"
|
|
53
53
|
}
|