| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- import { NodeConnectionTypes, type INodeType, type INodeDataBaseSchema } from '../Interface'
- export type ListData = INodeDataBaseSchema & {
- /**
- * 提取配置
- */
- extract_by: {
- enabled: boolean
- serial: string
- }
- /**
- * 过滤配置
- */
- filter_by: {
- enabled: boolean
- conditions: Array<{
- comparison_operator:
- | 'contains'
- | 'not_contains'
- | 'start_with'
- | 'end_with'
- | 'is'
- | 'is_not'
- | 'empty'
- | 'not_empty'
- | '='
- | '!='
- | '>'
- | '<'
- | '≥'
- | '≤'
- | 'all_of'
- left_value: string
- right_value: string
- right_value_list: string[]
- varType:
- | 'string'
- | 'number'
- | 'boolean'
- | 'object'
- | 'array[string]'
- | 'array[number]'
- | 'array[boolean]'
- | 'array[object]'
- }>
- }
- limit: {
- enabled: boolean
- size: number
- }
- order_by: {
- key: string
- value: 'asc' | 'desc' | ''
- }
- }
- export const listNode: INodeType = {
- version: ['1'],
- displayName: '列表操作',
- name: 'list',
- description: '列表操作节点',
- group: '数据处理',
- icon: 'lucide:list',
- iconColor: '#9373ee',
- inputs: [NodeConnectionTypes.main],
- outputs: [NodeConnectionTypes.main],
- // 业务数据
- schema: {
- appAgentId: '',
- parentId: '',
- position: {
- x: 20,
- y: 30
- },
- width: 96,
- height: 96,
- selected: false,
- nodeType: 'list',
- zIndex: 1,
- data: {}
- }
- }
|