Add smart insights excel report export command and tool

This commit is contained in:
gitea committed 2026-09-12 23:48:57 +08:00
1 parent be26248b6b
commit 780c4d0812
8 files changed
+745 -153

No files matched your search

+13
View File
@@ -773,6 +773,19 @@ export const HELP_REGISTRY: AreaHelp[] = [
aliases: ["reanalyze"],
summary: "Trigger on-demand smart insight risk analysis for an approval record",
usage: ["seal-use analytics analyze <recordId> [--corp <corpId>]"]
},
{
name: "export",
aliases: ["report", "download"],
summary: "Export smart insights risk report to high-fidelity Excel workbook",
usage: ["seal-use analytics export [--downloads] [--out <file>] [--start-date <ISO>] [--end-date <ISO>] [--limit <n>] [--corp <corpId>]"],
options: [
{ flag: "--downloads", description: "Save directly to the user's Downloads directory" },
{ flag: "--out <file>", description: "Custom destination file path" },
{ flag: "--start-date <ISO>", description: "Filter beginning time range" },
{ flag: "--end-date <ISO>", description: "Filter ending time range" },
{ flag: "--limit <n>", description: "Maximum risk tags to drill down into" }
]
}
]
},