将工作流查询、配置、执行、差异、调试、目录和 DataLink 记录、表达式、审计分别归位。 门面保留显式导出,消除 tracker 及分支类型经聚合出口形成的循环,补充文件级循环检查。 同步总纲、层级文档与接口源码索引,交付完整整改报告。 验证:943 项测试通过,类型、版本和 README 审计通过;二进制和插件构建、验证与打包通过。 81 个迁移函数体保持一致,公共 SDK 导出名和三份生成规范与原始基线一致。
47 lines
1.8 KiB
JSON
47 lines
1.8 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "https://hose-use.local/specs/hose-close-api/schemas/workflow-snapshot.schema.json",
|
|
"title": "Workflow snapshot",
|
|
"description": "工作流快照。前端使用 GET /api/easo/pipelines/snapshot/{snapshotId};代码还兼容 /api/easo/snapshots/{id} 与 /api/easo/pipelines/{pipelineId}/snapshots/{id}。",
|
|
"x-source": [
|
|
"code-derived: src/domains/platform/workflow/types.ts:286 (WorkflowSnapshotSchema)",
|
|
"reference: _tmp-captured/raw/GET-api-easo-pipelines-snapshot-id.json"
|
|
],
|
|
"type": "object",
|
|
"required": ["id", "pipelineId"],
|
|
"properties": {
|
|
"id": { "type": "string" },
|
|
"pipelineId": { "type": "string" },
|
|
"corporationId": { "type": "string" },
|
|
"platformId": { "type": "string" },
|
|
"triggerKey": { "type": "string", "description": "触发类型,例如 clock。" },
|
|
"label": { "type": "string" },
|
|
"tasks": {
|
|
"type": ["array", "null"],
|
|
"description": "快照时刻的任务节点树,结构同 WorkflowDetail.tasks。",
|
|
"items": { "type": "object", "additionalProperties": true }
|
|
},
|
|
"inputs": {
|
|
"oneOf": [
|
|
{ "type": "string", "description": "JSON 编码字符串。" },
|
|
{ "type": "array", "items": {} }
|
|
]
|
|
},
|
|
"outputs": {
|
|
"oneOf": [
|
|
{ "type": "string", "description": "JSON 编码字符串。" },
|
|
{ "type": "array", "items": {} }
|
|
]
|
|
},
|
|
"retry": { "type": "number" },
|
|
"state": { "type": "number" },
|
|
"debugState": { "type": "number" },
|
|
"staffId": { "type": ["string", "null"] },
|
|
"staffName": { "type": ["string", "null"] },
|
|
"createTime": { "type": "string" },
|
|
"updateTime": { "type": "string" },
|
|
"version": { "type": "string" }
|
|
},
|
|
"additionalProperties": true
|
|
}
|