n8n/packages/nodes-base/nodes/SeaTable/v2/actions/link/index.ts
Christoph Dyllick-Brenzinger e791055fcd rework of seatable-n8n-node
2023-10-26 02:20:43 +02:00

37 lines
744 B
TypeScript

import * as add from './add';
import * as remove from './remove';
import type { INodeProperties } from 'n8n-workflow';
export { add, remove };
export const descriptions: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
displayOptions: {
show: {
resource: ['link'],
},
},
options: [
{
name: 'Add',
value: 'add',
description: 'Create a link between two rows in a link column',
action: 'Add a row link',
},
{
name: 'Remove',
value: 'remove',
description: 'Remove a link between two rows from a link column',
action: 'Remove a row link',
},
],
default: 'add',
},
...add.description,
...remove.description,
];