2023-10-25 17:20:43 -07:00
|
|
|
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',
|
2024-01-29 01:11:52 -08:00
|
|
|
name: 'seaTable',
|
2023-10-25 17:20:43 -07:00
|
|
|
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'] = {
|
2024-01-16 03:54:44 -08:00
|
|
|
1: new SeaTableV1(baseDescription),
|
2023-10-25 17:20:43 -07:00
|
|
|
2: new SeaTableV2(baseDescription),
|
|
|
|
};
|
|
|
|
|
|
|
|
super(nodeVersions, baseDescription);
|
2021-09-29 16:28:27 -07:00
|
|
|
}
|
|
|
|
}
|