import type { INodeProperties } from 'n8n-workflow'; export const accountOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', type: 'options', noDataExpression: true, displayOptions: { show: { resource: ['account'], }, }, options: [ { name: 'Get Profile', value: 'getProfile', description: 'Get account profile by ID', action: 'Get account profile', }, { name: 'Get Profile by Handle', value: 'getProfileByHandle', description: 'Get account profile by handle', action: 'Get account profile by handle', }, { name: 'Get Limits', value: 'getLimits', description: 'Get account limits', action: 'Get account limits', }, ], default: 'getLimits', }, ]; export const accountFields: INodeProperties[] = [ // ---------------------------------- // account:getProfile // ---------------------------------- { displayName: 'Account ID', name: 'accountId', type: 'string', required: true, default: '', description: 'The ID of the account', displayOptions: { show: { resource: ['account'], operation: ['getProfile'], }, }, }, // ---------------------------------- // account:getProfileByHandle // ---------------------------------- { displayName: 'Handle', name: 'handle', type: 'string', required: true, default: '', description: 'The handle of the account (username)', displayOptions: { show: { resource: ['account'], operation: ['getProfileByHandle'], }, }, }, ];