@audienti/cli 0.1.134 → 0.1.135
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 +6 -0
- package/package.json +1 -1
- package/src/api-client.js +7 -0
- package/src/cli.js +13 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,12 @@ All notable changes to the Audienti CLI are documented here.
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [0.1.135] - 2026-10-24
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
- `audienti events resolve-uncertain-comment <event_id> --outcome <posted|not_sent> [--link <comment_link>]` settles a post comment whose result is unclear (`POST /api/v1/accounts/:account_id/events/:id/resolve_uncertain_comment`). Say it was posted (with the link to the comment) or not sent. It records the answer only: nothing is sent, retried or queued. A comment marked not sent is not planned again by itself (#3097).
|
|
12
|
+
|
|
7
13
|
## [0.1.134] - 2026-10-23
|
|
8
14
|
|
|
9
15
|
### Fixed
|
package/package.json
CHANGED
package/src/api-client.js
CHANGED
|
@@ -1147,6 +1147,13 @@ export class AudientiClient {
|
|
|
1147
1147
|
});
|
|
1148
1148
|
}
|
|
1149
1149
|
|
|
1150
|
+
resolveUncertainComment(accountId, eventId, body) {
|
|
1151
|
+
return this.requestJson(accountPath(accountId, ["events", eventId, "resolve_uncertain_comment"]), {
|
|
1152
|
+
method: "POST",
|
|
1153
|
+
body
|
|
1154
|
+
});
|
|
1155
|
+
}
|
|
1156
|
+
|
|
1150
1157
|
deleteProfile(accountId, profileId) {
|
|
1151
1158
|
return this.requestJson(accountPath(accountId, ["profiles", profileId]), {
|
|
1152
1159
|
method: "DELETE"
|
package/src/cli.js
CHANGED
|
@@ -15886,6 +15886,19 @@ const PARITY_ACTION_COMMANDS = new Map([
|
|
|
15886
15886
|
run: (client, accountId, [id]) => client.retryEvent(accountId, id),
|
|
15887
15887
|
done: ([id], payload) => `Retried event ${id} as ${display(payload?.event?.id)}.`
|
|
15888
15888
|
}],
|
|
15889
|
+
["events resolve-uncertain-comment", {
|
|
15890
|
+
usage: "audienti events resolve-uncertain-comment <event_id> --outcome <posted|not_sent> [--link <comment_link>]",
|
|
15891
|
+
purpose: "Settle a post comment whose result is unclear. Say it was posted (with the link to the comment) or that it was not sent. Records your answer; nothing is sent or retried.",
|
|
15892
|
+
api: "POST /api/v1/accounts/:account_id/events/:id/resolve_uncertain_comment.json",
|
|
15893
|
+
options: { outcome: { type: "string" }, link: { type: "string" } },
|
|
15894
|
+
required: ["outcome"],
|
|
15895
|
+
run: (client, accountId, [id], values) => client.resolveUncertainComment(accountId, id, compactObject({ outcome: values.outcome, comment_url: values.link })),
|
|
15896
|
+
done: ([id], payload) => {
|
|
15897
|
+
if (payload?.status === "needs_resolution") return `Event ${id}: that is a short link (${display(payload?.short_url)}). Paste the full comment link instead.`;
|
|
15898
|
+
if (payload?.status === "not_sent_recorded" || payload?.status === "already_not_sent") return `Event ${id} is recorded as not sent. Nothing was sent.`;
|
|
15899
|
+
return `Event ${id} is recorded as posted (${display(payload?.status)}).`;
|
|
15900
|
+
}
|
|
15901
|
+
}],
|
|
15889
15902
|
["profiles delete", {
|
|
15890
15903
|
usage: "audienti profiles delete <profile_id>",
|
|
15891
15904
|
purpose: "Remove one profile from its prospect. Backend admins only, like the web action.",
|