2023-07-17 09:42:30 -07:00
|
|
|
import type {
|
|
|
|
IExecuteFunctions,
|
|
|
|
INodeType,
|
|
|
|
INodeTypeDescription,
|
|
|
|
INodeTypeBaseDescription,
|
|
|
|
} from 'n8n-workflow';
|
|
|
|
|
|
|
|
import { versionDescription } from './actions/versionDescription';
|
|
|
|
import { router } from './actions/router';
|
|
|
|
import { listSearch, loadOptions, resourceMapping } from './methods';
|
|
|
|
|
|
|
|
export class AirtableV2 implements INodeType {
|
|
|
|
description: INodeTypeDescription;
|
|
|
|
|
|
|
|
constructor(baseDescription: INodeTypeBaseDescription) {
|
|
|
|
this.description = {
|
|
|
|
...baseDescription,
|
|
|
|
...versionDescription,
|
2024-10-02 04:31:22 -07:00
|
|
|
usableAsTool: true,
|
2023-07-17 09:42:30 -07:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
methods = {
|
|
|
|
listSearch,
|
|
|
|
loadOptions,
|
|
|
|
resourceMapping,
|
|
|
|
};
|
|
|
|
|
|
|
|
async execute(this: IExecuteFunctions) {
|
2024-01-17 07:08:50 -08:00
|
|
|
return await router.call(this);
|
2023-07-17 09:42:30 -07:00
|
|
|
}
|
|
|
|
}
|