Files
gsfdc/demo-dify/dify/web/test/fixtures/workflow-response.ts
T
wuzilongandCursor 6519682885 chore: 纳入本地 Dify 1.19.0 源码及品牌与免登改动
演示目录只保留可重建的源码。运行密钥、数据卷、依赖和带口令的本地配置不进入仓库。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-18 13:59:25 +08:00

21 lines
684 B
TypeScript

import type { WorkflowResponse } from '@dify/contracts/api/console/apps/types.gen'
import { zWorkflowResponse } from '@dify/contracts/api/console/apps/zod.gen'
export const createWorkflowResponseFixture = (overrides: Partial<WorkflowResponse> = {}) =>
zWorkflowResponse.parse({
id: 'workflow-1',
version: '1',
hash: 'workflow-hash',
graph: { nodes: [], edges: [], viewport: { x: 0, y: 0, zoom: 1 } },
features: {},
conversation_variables: [],
environment_variables: [],
rag_pipeline_variables: [],
created_at: 1700000000,
updated_at: 1700000000,
marked_name: '',
marked_comment: '',
tool_published: false,
...overrides,
})