Mirror real create-batch payload captured from staging console
The server derives approvalCode/nodeId/limit/startTime/endTime from the request; the response params echo is normalized, not the request shape. - send sourceSystem + thinkingDepthOverride "default" (按偏好设置) - drop limit and server-derived fields from the request body - keep material_pack payload free of hosecloud-specific fields Verification: simulation create against xiezihao staging now succeeds (200) and batch records appear with taskMode=simulation; 114 tests pass.
This commit is contained in:
1 parent
0e52a295ba
commit
997f1f60ac
7 files changed
+72
-66
No files matched your search
+1
-2
@@ -733,7 +733,6 @@ async function dispatch(argv: string[], runtime: CliRuntime) {
|
||||
await runTool("seal_simulation_batch_create", client, corp, {
|
||||
mode,
|
||||
flowIds: splitOption(args.options.flowIds) ?? splitOption(args.options["flow-ids"]),
|
||||
limit: numberOption(args.options.limit),
|
||||
rejectNodeName: stringOption(args.options.rejectNode) ?? stringOption(args.options["reject-node"]) ?? null,
|
||||
thinkingDepthOverride: stringOption(args.options.thinkingDepth) ?? stringOption(args.options["thinking-depth"]),
|
||||
skipInvoiceGeneration: booleanOption(args.options.skipInvoiceGeneration) ?? booleanOption(args.options["skip-invoice-generation"]),
|
||||
@@ -1621,7 +1620,7 @@ Usage:
|
||||
seal-home approval-runs url --sourceDocumentSN B26022501 [--corp <corpId>]
|
||||
seal-home approval-runs bridge [--sourceDocumentSN B26001887] [--corp <corpId>]
|
||||
seal-home simulation batch-records <batchId> [--corp <corpId>]
|
||||
seal-home simulation create --mode hosecloud --flow-ids "B26017701,B26022501" [--limit 2] [--reject-node 财务] [--thinking-depth medium|high] [--skip-invoice-generation|--skip-invoice-generation false] [--corp <corpId>]
|
||||
seal-home simulation create --mode hosecloud --flow-ids "B26017701,B26022501" [--reject-node 财务] [--thinking-depth default|medium|high] [--skip-invoice-generation|--skip-invoice-generation false] [--corp <corpId>]
|
||||
seal-home simulation create --mode material_pack --package-ids <materialPackageId> [--package-label 名称] [--template-id conference_reimbursement_v1] [--schema-config file.json] [--corp <corpId>]
|
||||
seal-home simulation list [--limit 50] [--corp <corpId>]
|
||||
seal-home simulation get <batchId> [--corp <corpId>]
|
||||
|
||||
Reference in new issue
Block a user