# 工作流 - 基础 - Mock 数据

export const initialData: FlowDocumentJSON = {
  nodes: [
    {
      id: '100001',
      type: 'start',
      meta: {
        position: {
          x: 180,
          y: 0,
        },
      },
      data: {
        title: '开始',
        outputs: {
          type: 'object',
          properties: {
            query: {
              type: 'string',
              default: 'Hello Flow.',
            },
            enable: {
              type: 'boolean',
              default: true,
            },
            array_obj: {
              type: 'array',
              items: {
                type: 'object',
                properties: {
                  int: {
                    type: 'number',
                  },
                  str: {
                    type: 'string',
                  },
                },
              },
            },
          },
        },
      },
    },
    {
      id: '900001',
      type: 'end',
      meta: {
        position: {
          x: 640,
          y: 0,
        },
      },
      data: {
        title: '结束',
        inputs: {
          type: 'object',
          properties: {
            result: {
              type: 'string',
            },
          },
        },
        inputsValues: {
          result: {
            type: 'ref',
            content: ['100001', 'query'],
          },
        },
      },
    },
  ],
  edges: [
    {
      sourceNodeID: '100001',
      targetNodeID: '900001',
    },
  ],
};