mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-28 22:19:41 -08:00
ef9d4aba90
Co-authored-by: Elias Meire <elias@meire.dev>
27 lines
787 B
TypeScript
27 lines
787 B
TypeScript
import type { INodeTypeBaseDescription, IVersionedNodeType } from 'n8n-workflow';
|
|
import { VersionedNodeType } from 'n8n-workflow';
|
|
|
|
import { AirtableV1 } from './v1/AirtableV1.node';
|
|
import { AirtableV2 } from './v2/AirtableV2.node';
|
|
|
|
export class Airtable extends VersionedNodeType {
|
|
constructor() {
|
|
const baseDescription: INodeTypeBaseDescription = {
|
|
displayName: 'Airtable',
|
|
name: 'airtable',
|
|
icon: 'file:airtable.svg',
|
|
group: ['input'],
|
|
description: 'Read, update, write and delete data from Airtable',
|
|
defaultVersion: 2.1,
|
|
};
|
|
|
|
const nodeVersions: IVersionedNodeType['nodeVersions'] = {
|
|
1: new AirtableV1(baseDescription),
|
|
2: new AirtableV2(baseDescription),
|
|
2.1: new AirtableV2(baseDescription),
|
|
};
|
|
|
|
super(nodeVersions, baseDescription);
|
|
}
|
|
}
|