n8n-nodes-espocrm
Version:
n8n Community Node for EspoCRM
175 lines (174 loc) • 4.57 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.contactProperties = void 0;
exports.contactProperties = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
displayOptions: {
show: {
resource: ['contact'],
},
},
options: [
{
name: 'Get',
value: 'get',
description: 'Get a contact',
action: 'Get a contact',
},
{
name: 'Get All',
value: 'getAll',
description: 'Get all contacts',
action: 'Get all contacts',
},
{
name: 'Create',
value: 'create',
description: 'Create a contact',
action: 'Create a contact',
},
{
name: 'Update',
value: 'update',
description: 'Update a contact',
action: 'Update a contact',
},
{
name: 'Delete',
value: 'delete',
description: 'Delete a contact',
action: 'Delete a contact',
},
],
default: 'get',
description: 'The operation to perform on contacts',
},
{
displayName: 'Contact ID',
name: 'contactId',
type: 'string',
required: true,
displayOptions: {
show: {
resource: ['contact'],
operation: ['get', 'update', 'delete'],
},
},
default: '',
description: 'The ID of the contact',
},
{
displayName: 'Limit',
name: 'limit',
type: 'number',
displayOptions: {
show: {
resource: ['contact'],
operation: ['getAll'],
},
},
default: 10,
description: 'Maximum number of contacts to retrieve',
typeOptions: {
minValue: 1,
maxValue: 100,
},
},
{
displayName: 'Search Query',
name: 'searchQuery',
type: 'string',
displayOptions: {
show: {
resource: ['contact'],
operation: ['getAll'],
},
},
default: '',
description: 'Search contacts by name or email',
},
{
displayName: 'First Name',
name: 'firstName',
type: 'string',
required: true,
displayOptions: {
show: {
resource: ['contact'],
operation: ['create', 'update'],
},
},
default: '',
description: 'The first name of the contact',
},
{
displayName: 'Last Name',
name: 'lastName',
type: 'string',
required: true,
displayOptions: {
show: {
resource: ['contact'],
operation: ['create', 'update'],
},
},
default: '',
description: 'The last name of the contact',
},
{
displayName: 'Email',
name: 'emailAddress',
type: 'string',
displayOptions: {
show: {
resource: ['contact'],
operation: ['create', 'update'],
},
},
default: '',
description: 'The email address of the contact',
},
{
displayName: 'Phone',
name: 'phoneNumber',
type: 'string',
displayOptions: {
show: {
resource: ['contact'],
operation: ['create', 'update'],
},
},
default: '',
description: 'The phone number of the contact',
},
{
displayName: 'Account ID',
name: 'accountId',
type: 'string',
displayOptions: {
show: {
resource: ['contact'],
operation: ['create', 'update'],
},
},
default: '',
description: 'The ID of the associated account',
},
{
displayName: 'Title',
name: 'title',
type: 'string',
displayOptions: {
show: {
resource: ['contact'],
operation: ['create', 'update'],
},
},
default: '',
description: 'The job title of the contact',
},
];