mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-15 17:14:05 -08:00
27 lines
807 B
TypeScript
27 lines
807 B
TypeScript
import type { INodeTypeBaseDescription, IVersionedNodeType } from 'n8n-workflow';
|
|
import { VersionedNodeType } from 'n8n-workflow';
|
|
|
|
import { SeaTableV1 } from './v1/SeaTableV1.node';
|
|
import { SeaTableV2 } from './v2/SeaTableV2.node';
|
|
|
|
export class SeaTable extends VersionedNodeType {
|
|
constructor() {
|
|
const baseDescription: INodeTypeBaseDescription = {
|
|
displayName: 'SeaTable',
|
|
name: 'seatable',
|
|
icon: 'file:seatable.svg',
|
|
group: ['output'],
|
|
subtitle: '={{$parameter["resource"] + ": " + $parameter["operation"]}}',
|
|
description: 'Read, update, write and delete data from SeaTable',
|
|
defaultVersion: 2,
|
|
};
|
|
|
|
const nodeVersions: IVersionedNodeType['nodeVersions'] = {
|
|
1: new SeaTableV1(),
|
|
2: new SeaTableV2(baseDescription),
|
|
};
|
|
|
|
super(nodeVersions, baseDescription);
|
|
}
|
|
}
|