import { type INodeType, type INodeTypeDescription } from 'n8n-workflow'; import { userDescription } from './resources/user'; import { companyDescription } from './resources/company'; export class GwezzOceanengine implements INodeType { description: INodeTypeDescription = { displayName: 'Gwezz Ocean Engine', name: 'gwezzOceanengine', icon: { light: 'file:../../icons/gwezz.svg', dark: 'file:../../icons/gwezz.dark.svg' }, group: ['transform'], version: 1, subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}', description: 'Interact with the Gwezz Ocean Engine API', defaults: { name: 'Gwezz Ocean Engine', }, usableAsTool: true, inputs: ['main'], outputs: ['main'], credentials: [{ name: 'gwezzOceanengineOAuth2Api', required: true }], properties: [ { displayName: '资源', name: 'resource', type: 'options', noDataExpression: true, options: [ { name: 'User', value: 'user', }, { name: 'Company', value: 'company', }, ], default: 'user', }, ...userDescription, ...companyDescription, ], }; }