mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 14:44:05 -08:00
ada485ed5c
* ⚡ Add company resource * ⚡ Small improvement * Tweak descriptions/ labels Added descriptions for resources + fixed a spelling mistake (all just editing "description" fields, nothing else) * 👕 Fix lint issue Co-authored-by: ricardo <ricardoespinoza105@gmail.com> Co-authored-by: maxtkacz <maxtkacz@gmail.com>
76 lines
1.4 KiB
TypeScript
76 lines
1.4 KiB
TypeScript
import {
|
|
INodeProperties,
|
|
} from 'n8n-workflow';
|
|
|
|
export const contactCompanyOperations = [
|
|
{
|
|
displayName: 'Operation',
|
|
name: 'operation',
|
|
type: 'options',
|
|
displayOptions: {
|
|
show: {
|
|
resource: [
|
|
'contactCompany',
|
|
],
|
|
},
|
|
},
|
|
options: [
|
|
{
|
|
name: 'Add',
|
|
value: 'add',
|
|
description: 'Add contact to a company',
|
|
},
|
|
{
|
|
name: 'Remove',
|
|
value: 'remove',
|
|
description: 'Remove a contact from a company',
|
|
},
|
|
],
|
|
default: 'create',
|
|
description: 'The operation to perform.',
|
|
},
|
|
] as INodeProperties[];
|
|
|
|
export const contactCompanyFields = [
|
|
|
|
/* -------------------------------------------------------------------------- */
|
|
/* contactCompany:add */
|
|
/* -------------------------------------------------------------------------- */
|
|
{
|
|
displayName: 'Contact ID',
|
|
name: 'contactId',
|
|
type: 'string',
|
|
displayOptions: {
|
|
show: {
|
|
resource: [
|
|
'contactCompany',
|
|
],
|
|
operation: [
|
|
'add',
|
|
'remove',
|
|
],
|
|
},
|
|
},
|
|
default: '',
|
|
description: 'The ID of the contact.',
|
|
},
|
|
{
|
|
displayName: 'Company ID',
|
|
name: 'companyId',
|
|
type: 'string',
|
|
displayOptions: {
|
|
show: {
|
|
resource: [
|
|
'contactCompany',
|
|
],
|
|
operation: [
|
|
'add',
|
|
'remove',
|
|
],
|
|
},
|
|
},
|
|
default: '',
|
|
description: 'The ID of the company.',
|
|
},
|
|
] as INodeProperties[];
|