n8n/packages/nodes-base/nodes/ActiveCampaign/ListDescription.ts
Iván Ovejero ca8c2d6577
refactor(nodes-base): Apply lint rule node-param-option-name-wrong-for-get-many (#4051)
* ⬆️ Upgrade linter

* 📦 Update `package-lock.json`

* 👕 Substitute rule

* 👕 Apply lintfix for `node-param-option-name-wrong-for-get-many`

* 👕 Restore lint exceptions
2022-09-07 16:51:14 +02:00

34 lines
717 B
TypeScript

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