mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
a552febab4
* feat: 🎸 node/activecampaign account, tag, account contact * feat: 🎸 node/ActiveCampaign Update an accountContact assoc * feat: 🎸 node/activecampaign Update an account * feat: 🎸 node/activecampaign Get an account * feat: 🎸 node/activecampaign GetAll & Delete an account * feat: 🎸 node/activecampaign change ID's type to number * refactor: 💡 node/activecampaign merge getAll properties * ⚡ Improvements to #923 * ⚡ Improvements * ⚡ Improvements * ⚡ Add breaking change message Co-authored-by: Ronald Diquélou <rdiquelou@opensafepro.com>
176 lines
3 KiB
TypeScript
176 lines
3 KiB
TypeScript
import {
|
|
INodeProperties,
|
|
} from 'n8n-workflow';
|
|
|
|
export const accountContactOperations = [
|
|
{
|
|
displayName: 'Operation',
|
|
name: 'operation',
|
|
type: 'options',
|
|
displayOptions: {
|
|
show: {
|
|
resource: [
|
|
'accountContact',
|
|
],
|
|
},
|
|
},
|
|
options: [
|
|
{
|
|
name: 'Create',
|
|
value: 'create',
|
|
description: 'Create an association',
|
|
},
|
|
{
|
|
name: 'Delete',
|
|
value: 'delete',
|
|
description: 'Delete an association',
|
|
},
|
|
{
|
|
name: 'Update',
|
|
value: 'update',
|
|
description: 'Update an association',
|
|
},
|
|
],
|
|
default: 'create',
|
|
description: 'The operation to perform.',
|
|
},
|
|
] as INodeProperties[];
|
|
|
|
export const accountContactFields = [
|
|
// ----------------------------------
|
|
// accountContact:create
|
|
// ----------------------------------
|
|
{
|
|
displayName: 'Account ID',
|
|
name: 'account',
|
|
type: 'number',
|
|
default: '',
|
|
required: true,
|
|
displayOptions: {
|
|
show: {
|
|
operation: [
|
|
'create',
|
|
],
|
|
resource: [
|
|
'accountContact',
|
|
],
|
|
},
|
|
},
|
|
description: 'Account ID',
|
|
},
|
|
{
|
|
displayName: 'Contact ID',
|
|
name: 'contact',
|
|
type: 'number',
|
|
default: '',
|
|
required: true,
|
|
displayOptions: {
|
|
show: {
|
|
operation: [
|
|
'create',
|
|
],
|
|
resource: [
|
|
'accountContact',
|
|
],
|
|
},
|
|
},
|
|
description: 'Contact ID',
|
|
},
|
|
{
|
|
displayName: 'Additional Fields',
|
|
name: 'additionalFields',
|
|
type: 'collection',
|
|
placeholder: 'Add Field',
|
|
displayOptions: {
|
|
show: {
|
|
operation: [
|
|
'create',
|
|
],
|
|
resource: [
|
|
'accountContact',
|
|
],
|
|
},
|
|
},
|
|
default: {},
|
|
options: [
|
|
{
|
|
displayName: 'Job title',
|
|
name: 'jobTitle',
|
|
type: 'string',
|
|
default: '',
|
|
description: 'Job Title of the contact at the account',
|
|
},
|
|
],
|
|
},
|
|
// ----------------------------------
|
|
// accountContact:delete
|
|
// ----------------------------------
|
|
{
|
|
displayName: 'Account Contact ID',
|
|
name: 'accountContactId',
|
|
type: 'number',
|
|
displayOptions: {
|
|
show: {
|
|
operation: [
|
|
'delete',
|
|
],
|
|
resource: [
|
|
'accountContact',
|
|
],
|
|
},
|
|
},
|
|
default: 0,
|
|
required: true,
|
|
description: 'ID of the account contact to delete.',
|
|
},
|
|
// ----------------------------------
|
|
// accountContact:update
|
|
// ----------------------------------
|
|
{
|
|
displayName: 'Account Contact ID',
|
|
name: 'accountContactId',
|
|
type: 'number',
|
|
default: '',
|
|
required: true,
|
|
displayOptions: {
|
|
show: {
|
|
operation: [
|
|
'update',
|
|
],
|
|
resource: [
|
|
'accountContact',
|
|
],
|
|
},
|
|
},
|
|
description: 'Account ID',
|
|
},
|
|
|
|
{
|
|
displayName: 'Update Fields',
|
|
name: 'updateFields',
|
|
type: 'collection',
|
|
description: 'The fields to update.',
|
|
placeholder: 'Add Field',
|
|
displayOptions: {
|
|
show: {
|
|
operation: [
|
|
'update',
|
|
],
|
|
resource: [
|
|
'accountContact',
|
|
],
|
|
},
|
|
},
|
|
default: {},
|
|
options: [
|
|
{
|
|
displayName: 'Job title',
|
|
name: 'jobTitle',
|
|
type: 'string',
|
|
default: '',
|
|
description: 'Job Title of the contact at the account',
|
|
},
|
|
],
|
|
},
|
|
] as INodeProperties[];
|