n8n/packages/nodes-base/nodes/Google/Drive/GoogleDrive.node.ts
Mutasem Aldmour 9729c2a5da
feat(ai-builder): Add code-base workflow builder (#24535)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-10 12:24:27 +00:00

29 lines
903 B
TypeScript

import type { INodeTypeBaseDescription, IVersionedNodeType } from 'n8n-workflow';
import { VersionedNodeType } from 'n8n-workflow';
import { GoogleDriveV1 } from './v1/GoogleDriveV1.node';
import { GoogleDriveV2 } from './v2/GoogleDriveV2.node';
export class GoogleDrive extends VersionedNodeType {
constructor() {
const baseDescription: INodeTypeBaseDescription = {
displayName: 'Google Drive',
name: 'googleDrive',
icon: 'file:googleDrive.svg',
group: ['input'],
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
description: 'Access data on Google Drive',
defaultVersion: 3,
schemaPath: 'Google/Drive',
};
const nodeVersions: IVersionedNodeType['nodeVersions'] = {
1: new GoogleDriveV1(baseDescription),
2: new GoogleDriveV1(baseDescription),
3: new GoogleDriveV2(baseDescription),
};
super(nodeVersions, baseDescription);
}
}