UNPKG

n8n-nodes-espocrm

Version:

n8n Community Node for EspoCRM

342 lines (341 loc) 9.04 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.opportunityProperties = void 0; exports.opportunityProperties = [ { displayName: 'Operation', name: 'operation', type: 'options', noDataExpression: true, displayOptions: { show: { resource: ['opportunity'], }, }, options: [ { name: 'Get', value: 'get', description: 'Get an opportunity', action: 'Get an opportunity', }, { name: 'Get All', value: 'getAll', description: 'Get all opportunities', action: 'Get all opportunities', }, { name: 'Create', value: 'create', description: 'Create an opportunity', action: 'Create an opportunity', }, { name: 'Update', value: 'update', description: 'Update an opportunity', action: 'Update an opportunity', }, { name: 'Delete', value: 'delete', description: 'Delete an opportunity', action: 'Delete an opportunity', }, ], default: 'get', description: 'The operation to perform on opportunities', }, { displayName: 'Opportunity ID', name: 'opportunityId', type: 'string', required: true, displayOptions: { show: { resource: ['opportunity'], operation: ['get', 'update', 'delete'], }, }, default: '', description: 'The ID of the opportunity', }, { displayName: 'Limit', name: 'limit', type: 'number', displayOptions: { show: { resource: ['opportunity'], operation: ['getAll'], }, }, default: 10, description: 'Maximum number of opportunities to retrieve', typeOptions: { minValue: 1, maxValue: 100, }, }, { displayName: 'Search Query', name: 'searchQuery', type: 'string', displayOptions: { show: { resource: ['opportunity'], operation: ['getAll'], }, }, default: '', description: 'Search opportunities by name', }, { displayName: 'Stage Filter', name: 'stageFilter', type: 'options', displayOptions: { show: { resource: ['opportunity'], operation: ['getAll'], }, }, options: [ { name: 'All', value: '', }, { name: 'Prospecting', value: 'Prospecting', }, { name: 'Qualification', value: 'Qualification', }, { name: 'Needs Analysis', value: 'Needs Analysis', }, { name: 'Value Proposition', value: 'Value Proposition', }, { name: 'Id. Decision Makers', value: 'Id. Decision Makers', }, { name: 'Perception Analysis', value: 'Perception Analysis', }, { name: 'Proposal/Price Quote', value: 'Proposal/Price Quote', }, { name: 'Negotiation/Review', value: 'Negotiation/Review', }, { name: 'Closed Won', value: 'Closed Won', }, { name: 'Closed Lost', value: 'Closed Lost', }, ], default: '', description: 'Filter opportunities by stage', }, { displayName: 'Name', name: 'name', type: 'string', required: true, displayOptions: { show: { resource: ['opportunity'], operation: ['create', 'update'], }, }, default: '', description: 'The name of the opportunity', }, { displayName: 'Account ID', name: 'accountId', type: 'string', displayOptions: { show: { resource: ['opportunity'], operation: ['create', 'update'], }, }, default: '', description: 'The ID of the associated account', }, { displayName: 'Contact ID', name: 'contactId', type: 'string', displayOptions: { show: { resource: ['opportunity'], operation: ['create', 'update'], }, }, default: '', description: 'The ID of the associated contact', }, { displayName: 'Stage', name: 'stage', type: 'options', displayOptions: { show: { resource: ['opportunity'], operation: ['create', 'update'], }, }, options: [ { name: 'Prospecting', value: 'Prospecting', }, { name: 'Qualification', value: 'Qualification', }, { name: 'Needs Analysis', value: 'Needs Analysis', }, { name: 'Value Proposition', value: 'Value Proposition', }, { name: 'Id. Decision Makers', value: 'Id. Decision Makers', }, { name: 'Perception Analysis', value: 'Perception Analysis', }, { name: 'Proposal/Price Quote', value: 'Proposal/Price Quote', }, { name: 'Negotiation/Review', value: 'Negotiation/Review', }, { name: 'Closed Won', value: 'Closed Won', }, { name: 'Closed Lost', value: 'Closed Lost', }, ], default: 'Prospecting', description: 'The stage of the opportunity', }, { displayName: 'Amount', name: 'amount', type: 'number', displayOptions: { show: { resource: ['opportunity'], operation: ['create', 'update'], }, }, default: 0, description: 'The amount of the opportunity', typeOptions: { minValue: 0, }, }, { displayName: 'Probability', name: 'probability', type: 'number', displayOptions: { show: { resource: ['opportunity'], operation: ['create', 'update'], }, }, default: 0, description: 'The probability of closing (0-100)', typeOptions: { minValue: 0, maxValue: 100, }, }, { displayName: 'Close Date', name: 'closeDate', type: 'dateTime', displayOptions: { show: { resource: ['opportunity'], operation: ['create', 'update'], }, }, default: '', description: 'The expected close date', }, { displayName: 'Lead Source', name: 'leadSource', type: 'options', displayOptions: { show: { resource: ['opportunity'], operation: ['create', 'update'], }, }, options: [ { name: 'Call', value: 'Call', }, { name: 'Email', value: 'Email', }, { name: 'Existing Customer', value: 'Existing Customer', }, { name: 'Partner', value: 'Partner', }, { name: 'Public Relations', value: 'Public Relations', }, { name: 'Web Site', value: 'Web Site', }, { name: 'Campaign', value: 'Campaign', }, { name: 'Other', value: 'Other', }, ], default: 'Web Site', description: 'The source of the opportunity', }, ];