Add Webhook resource pack export and rename dataset to resource-pack
- Clarify dataset naming as Webhook 资源包 (CLI: resource-pack, alias: pack), distinguishing from backend native simulation material pack while retaining material-pack as backward-compatible alias - Implement exportApprovalRunsToResourcePack for exporting online approval runs and attachments into local resource pack ZIP - Support seal-use webhook resource-pack export with record filters, docId prefix/suffix, and destination options - Refine bidirectional directory validation to allow documents without attachments - Update CLI runner, help definitions, and skill references - Add comprehensive export, preview, and CLI command unit tests
This commit is contained in:
1 parent
9afd169b50
commit
e54bf6f2a4
16 files changed
+1068
-68
No files matched your search
+29
-6
@@ -272,14 +272,37 @@ export const HELP_REGISTRY: AreaHelp[] = [
|
||||
usage: ["seal-use webhook delete <idOrName> [--yes|--dry-run] [--corp <corpId>]"]
|
||||
},
|
||||
{
|
||||
name: "material-pack preview",
|
||||
summary: "Inspect and validate a material pack ZIP or Excel sheet",
|
||||
usage: ["seal-use webhook material-pack preview <材料包.zip|信息表.xlsx> [--min-file-size <bytes>] [--max-file-size <bytes>] [--allowed-extensions <.pdf,.xlsx,...>] [--corp <corpId>]"]
|
||||
name: "resource-pack export",
|
||||
summary: "Export online approval records to a local Webhook resource pack ZIP (alias: pack export)",
|
||||
usage: [
|
||||
"seal-use webhook resource-pack export [--limit <n>] [--status <status>] [--output <file.zip>] [--to-downloads] [--corp <corpId>]",
|
||||
"seal-use webhook resource-pack export <recordId> [--output <file.zip>] [--corp <corpId>]",
|
||||
"seal-use webhook resource-pack export --record-ids <id1,id2> [--corp <corpId>]"
|
||||
],
|
||||
options: [
|
||||
{ flag: "<recordId>", description: "Single approval run record ID to export" },
|
||||
{ flag: "--record-ids <ids>", description: "Comma-separated list of approval run record IDs" },
|
||||
{ flag: "--limit <n>", description: "Limit number of records to export (default: 10)" },
|
||||
{ flag: "--status <status>", description: "Filter records by status (e.g. completed, approved)" },
|
||||
{ flag: "--start-date <YYYY-MM-DD>", description: "Filter records starting from date" },
|
||||
{ flag: "--end-date <YYYY-MM-DD>", description: "Filter records up to date" },
|
||||
{ flag: "--doc-id-prefix <str>", description: "Optional prefix prepended to exported documentId/meetingId" },
|
||||
{ flag: "--doc-id-suffix <str>", description: "Optional suffix appended to exported documentId/meetingId" },
|
||||
{ flag: "--no-attachments", description: "Skip downloading and packaging attachments" },
|
||||
{ flag: "-o, --output <file.zip>", description: "Target ZIP file path" },
|
||||
{ flag: "--to-downloads", description: "Save directly to ~/Downloads" },
|
||||
{ flag: "--corp <corpId>", description: "Source enterprise configuration ID" }
|
||||
]
|
||||
},
|
||||
{
|
||||
name: "material-pack push",
|
||||
summary: "Upload and push a material pack to webhook endpoint",
|
||||
usage: ["seal-use webhook material-pack push <材料包.zip|信息表.xlsx> [--webhook <idOrName>] [--corp <corpId>]"]
|
||||
name: "resource-pack preview",
|
||||
summary: "Inspect and validate a Webhook resource pack ZIP or Excel sheet (alias: pack preview)",
|
||||
usage: ["seal-use webhook resource-pack preview <资源包.zip|信息表.xlsx> [--min-file-size <bytes>] [--max-file-size <bytes>] [--allowed-extensions <.pdf,.xlsx,...>] [--corp <corpId>]"]
|
||||
},
|
||||
{
|
||||
name: "resource-pack push",
|
||||
summary: "Upload attachments and push documents from a resource pack ZIP to Webhook (alias: pack push)",
|
||||
usage: ["seal-use webhook resource-pack push <资源包.zip|信息表.xlsx> [--webhook <idOrName>] [--corp <corpId>]"]
|
||||
},
|
||||
{
|
||||
name: "replay",
|
||||
|
||||
Reference in new issue
Block a user