mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-16 01:24:05 -08:00
58 lines
1.1 KiB
TypeScript
58 lines
1.1 KiB
TypeScript
|
import type { INodeTypeDescription } from 'n8n-workflow';
|
||
|
import * as row from './row';
|
||
|
import * as base from './base';
|
||
|
import * as link from './link';
|
||
|
import * as asset from './asset';
|
||
|
|
||
|
export const versionDescription: INodeTypeDescription = {
|
||
|
displayName: 'SeaTable',
|
||
|
name: 'seaTable',
|
||
|
icon: 'file:seatable.svg',
|
||
|
group: ['output'],
|
||
|
version: 2,
|
||
|
subtitle: '={{$parameter["resource"] + ": " + $parameter["operation"]}}',
|
||
|
description: 'Consume the SeaTable API',
|
||
|
defaults: {
|
||
|
name: 'SeaTable',
|
||
|
},
|
||
|
inputs: ['main'],
|
||
|
outputs: ['main'],
|
||
|
credentials: [
|
||
|
{
|
||
|
name: 'seaTableApi',
|
||
|
required: true,
|
||
|
},
|
||
|
],
|
||
|
properties: [
|
||
|
{
|
||
|
displayName: 'Resource',
|
||
|
name: 'resource',
|
||
|
type: 'options',
|
||
|
noDataExpression: true,
|
||
|
options: [
|
||
|
{
|
||
|
name: 'Row',
|
||
|
value: 'row',
|
||
|
},
|
||
|
{
|
||
|
name: 'Base',
|
||
|
value: 'base',
|
||
|
},
|
||
|
{
|
||
|
name: 'Link',
|
||
|
value: 'link',
|
||
|
},
|
||
|
{
|
||
|
name: 'Asset',
|
||
|
value: 'asset',
|
||
|
},
|
||
|
],
|
||
|
default: 'row',
|
||
|
},
|
||
|
...row.descriptions,
|
||
|
...base.descriptions,
|
||
|
...link.descriptions,
|
||
|
...asset.descriptions,
|
||
|
],
|
||
|
};
|