Commit dbf3b7ad authored by Joel's avatar Joel

feat: end node typs and mock

parent 33410775
import { EndVarType } from './types'
import type { EndNodeType } from './types'
export const mockData: EndNodeType = {
title: 'Test',
desc: 'Test',
type: 'Test',
outputs: {
type: EndVarType.none,
plain_text_selector: ['test'],
structured_variables: [
{
variable: 'test',
value_selector: ['aaa', 'name'],
},
],
},
}
import type { CommonNodeType, Variable } from '@/app/components/workflow/types'
export enum EndVarType {
none = 'none',
plainText = 'plain-text',
structured = 'structured',
}
export type EndNodeType = CommonNodeType & {
outputs: {
type: EndVarType
plain_text_selector?: string[]
structured_variables?: Variable[]
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment