mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-16 01:24:05 -08:00
41 lines
800 B
TypeScript
41 lines
800 B
TypeScript
import type { INodeTypeDescription } from 'n8n-workflow';
|
|
import { rowFields, rowOperations } from './RowDescription';
|
|
|
|
export const versionDescription: INodeTypeDescription = {
|
|
displayName: 'SeaTable',
|
|
name: 'seaTable',
|
|
icon: 'file:seaTable.svg',
|
|
group: ['input'],
|
|
version: 1,
|
|
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',
|
|
},
|
|
],
|
|
default: 'row',
|
|
},
|
|
...rowOperations,
|
|
...rowFields,
|
|
],
|
|
};
|