@erdoai/cli 0.227.0 → 0.228.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.
- package/dist/index.js +5 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2348,10 +2348,12 @@ var ErdoClient = class {
|
|
|
2348
2348
|
);
|
|
2349
2349
|
}
|
|
2350
2350
|
// --- event pipelines ---
|
|
2351
|
-
listEventPipelines(limit, offset) {
|
|
2351
|
+
listEventPipelines(limit, offset, include, summaryFailureBasis) {
|
|
2352
2352
|
const q = new URLSearchParams();
|
|
2353
2353
|
if (limit) q.set("limit", String(limit));
|
|
2354
2354
|
if (offset) q.set("offset", String(offset));
|
|
2355
|
+
if (include) q.set("include", include);
|
|
2356
|
+
if (summaryFailureBasis) q.set("summary_failure_basis", summaryFailureBasis);
|
|
2355
2357
|
const qs = q.toString();
|
|
2356
2358
|
return this.request("GET", `/v1/event-pipelines${qs ? `?${qs}` : ""}`);
|
|
2357
2359
|
}
|
|
@@ -11132,9 +11134,9 @@ connectLinksCmd.command("revoke <id>").description("Revoke a pending connect lin
|
|
|
11132
11134
|
}
|
|
11133
11135
|
});
|
|
11134
11136
|
var pipelinesCmd = program.command("event-pipelines").description("Inspect event pipelines (lead-capture / webhook flows)");
|
|
11135
|
-
pipelinesCmd.command("list").description("List event pipelines in the active org").option("-n, --limit <n>", "max rows", (v) => parseInt(v, 10)).action(async (opts) => {
|
|
11137
|
+
pipelinesCmd.command("list").description("List event pipelines in the active org").option("-n, --limit <n>", "max rows", (v) => parseInt(v, 10)).option("--with-execution-summary", "add each pipeline's recent-execution health (latest outcome, failures in the last 30 days, held refusals) in the same call").option("--failure-basis <basis>", "with --with-execution-summary: outcome (default) or error_text (also counts soft action errors on a 2xx and 202 drops as failed)").action(async (opts) => {
|
|
11136
11138
|
try {
|
|
11137
|
-
print(await new ErdoClient().listEventPipelines(opts.limit));
|
|
11139
|
+
print(await new ErdoClient().listEventPipelines(opts.limit, void 0, opts.withExecutionSummary ? "execution_summary" : void 0, opts.failureBasis));
|
|
11138
11140
|
} catch (e) {
|
|
11139
11141
|
fail(e);
|
|
11140
11142
|
}
|