n8n/packages/nodes-base/nodes/ActiveCampaign/ListDescription.ts
Ricardo Espinoza db47892e77
Add contact list and list resources to Active Campaign Node (#1187)
* ⬆️ Set google-fonts-webpack-plugin to latest version
*  Add Contact List and List resources to Active Campaign Node
2020-11-19 08:37:01 +01:00

39 lines
725 B
TypeScript

import {
INodeProperties,
} from 'n8n-workflow';
import {
activeCampaignDefaultGetAllProperties,
} from './GenericFunctions';
export const listOperations = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
displayOptions: {
show: {
resource: [
'list',
],
},
},
options: [
{
name: 'Get All',
value: 'getAll',
description: 'Get all lists',
},
],
default: 'getAll',
description: 'The operation to perform.',
},
] as INodeProperties[];
export const listFields = [
// ----------------------------------
// list:getAll
// ----------------------------------
...activeCampaignDefaultGetAllProperties('list', 'getAll'),
] as INodeProperties[];