UNPKG

n8n-nodes-espocrm

Version:

n8n Community Node for EspoCRM

222 lines (221 loc) 6.94 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.accountProperties = void 0; exports.accountProperties = [ { displayName: 'Operation', name: 'operation', type: 'options', noDataExpression: true, displayOptions: { show: { resource: ['account'], }, }, options: [ { name: 'Get', value: 'get', description: 'Get an account by ID', action: 'Get an account', }, { name: 'Get All', value: 'getAll', description: 'Get all accounts with optional filtering', action: 'Get all accounts', }, { name: 'Create', value: 'create', description: 'Create a new account', action: 'Create an account', }, { name: 'Update', value: 'update', description: 'Update an existing account', action: 'Update an account', }, { name: 'Delete', value: 'delete', description: 'Delete an account', action: 'Delete an account', }, ], default: 'get', description: 'The operation to perform on accounts', }, { displayName: 'Account ID', name: 'accountId', type: 'string', required: true, displayOptions: { show: { resource: ['account'], operation: ['get', 'update', 'delete'], }, }, default: '', description: 'The unique identifier of the account to retrieve, update, or delete', placeholder: 'e.g., 507f1f77bcf86cd799439011', }, { displayName: 'Limit', name: 'limit', type: 'number', displayOptions: { show: { resource: ['account'], operation: ['getAll'], }, }, default: 10, description: 'Maximum number of accounts to retrieve (between 1 and 100)', typeOptions: { minValue: 1, maxValue: 100, }, }, { displayName: 'Search Query', name: 'searchQuery', type: 'string', displayOptions: { show: { resource: ['account'], operation: ['getAll'], }, }, default: '', description: 'Search accounts by name. Leave empty to get all accounts without filtering.', placeholder: 'e.g., "Acme Corp" or "Tech"', }, { displayName: 'Account Name', name: 'name', type: 'string', required: true, displayOptions: { show: { resource: ['account'], operation: ['create', 'update'], }, }, default: '', description: 'The official name of the company or organization', placeholder: 'e.g., "Acme Corporation" or "Tech Solutions Ltd"', }, { displayName: 'Account Type', name: 'type', type: 'options', displayOptions: { show: { resource: ['account'], operation: ['create', 'update'], }, }, options: [ { name: 'Customer', value: 'Customer', description: 'Existing paying customer' }, { name: 'Investor', value: 'Investor', description: 'Financial investor or stakeholder' }, { name: 'Partner', value: 'Partner', description: 'Business partner or strategic alliance' }, { name: 'Reseller', value: 'Reseller', description: 'Authorized reseller or distributor' }, ], default: 'Customer', description: 'The business relationship type that categorizes how this account relates to your organization', }, // Zusätzliche optionale Felder für erweiterte Account-Erstellung { displayName: 'Additional Fields', name: 'additionalFields', type: 'collection', placeholder: 'Add Field', default: {}, displayOptions: { show: { resource: ['account'], operation: ['create', 'update'], }, }, options: [ { displayName: 'Website', name: 'website', type: 'string', default: '', description: 'Company website URL', placeholder: 'https://www.company.com', }, { displayName: 'Industry', name: 'industry', type: 'string', default: '', description: 'The industry sector the company operates in', placeholder: 'e.g., "Technology", "Manufacturing", "Healthcare"', }, { displayName: 'Phone Number', name: 'phoneNumber', type: 'string', default: '', description: 'Main phone number for the account', placeholder: 'e.g., "+1-555-123-4567"', }, { displayName: 'Billing Address Street', name: 'billingAddressStreet', type: 'string', default: '', description: 'Street address for billing', placeholder: '123 Main Street', }, { displayName: 'Billing Address City', name: 'billingAddressCity', type: 'string', default: '', description: 'City for billing address', placeholder: 'New York', }, { displayName: 'Billing Address Country', name: 'billingAddressCountry', type: 'string', default: '', description: 'Country for billing address', placeholder: 'United States', }, { displayName: 'Description', name: 'description', type: 'string', typeOptions: { rows: 3, }, default: '', description: 'Additional notes or description about the account', placeholder: 'Enter any additional information about this account...', }, ], }, ];