2023-07-17 09:42:30 -07:00
|
|
|
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',
|
2024-05-22 05:28:09 -07:00
|
|
|
defaultVersion: 2.1,
|
2023-07-17 09:42:30 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
const nodeVersions: IVersionedNodeType['nodeVersions'] = {
|
|
|
|
1: new AirtableV1(baseDescription),
|
|
|
|
2: new AirtableV2(baseDescription),
|
2024-05-22 05:28:09 -07:00
|
|
|
2.1: new AirtableV2(baseDescription),
|
2023-07-17 09:42:30 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
super(nodeVersions, baseDescription);
|
2019-07-07 10:00:05 -07:00
|
|
|
}
|
2021-10-27 13:00:13 -07:00
|
|
|
}
|