mirror of https://github.com/langgenius/dify.git
25 lines
602 B
TypeScript
25 lines
602 B
TypeScript
import { BlockEnum } from '../../types'
|
|
import type { IfElseNodeType } from './types'
|
|
import { ComparisonOperator, LogicalOperator } from './types'
|
|
|
|
export const mockData: IfElseNodeType = {
|
|
title: 'Test',
|
|
desc: 'Test',
|
|
type: BlockEnum.IfElse,
|
|
logical_operator: LogicalOperator.and,
|
|
conditions: [
|
|
{
|
|
id: '1',
|
|
variable_selector: ['aaa', 'name'],
|
|
comparison_operator: ComparisonOperator.contains,
|
|
value: '22',
|
|
},
|
|
{
|
|
id: '2',
|
|
variable_selector: ['bbb', 'b', 'c'],
|
|
comparison_operator: ComparisonOperator.equal,
|
|
value: 'b',
|
|
},
|
|
],
|
|
}
|