n8n/packages/nodes-base/nodes/Lemlist/descriptions/CampaignDescription.ts
2021-12-03 09:44:16 +01:00

74 lines
1.1 KiB
TypeScript

import {
INodeProperties,
} from 'n8n-workflow';
export const campaignOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
default: 'getAll',
description: 'Operation to perform',
options: [
{
name: 'Get All',
value: 'getAll',
},
],
displayOptions: {
show: {
resource: [
'campaign',
],
},
},
},
];
export const campaignFields: INodeProperties[] = [
// ----------------------------------
// campaign: getAll
// ----------------------------------
{
displayName: 'Return All',
name: 'returnAll',
type: 'boolean',
default: false,
description: 'Return all results.',
displayOptions: {
show: {
resource: [
'campaign',
],
operation: [
'getAll',
],
},
},
},
{
displayName: 'Limit',
name: 'limit',
type: 'number',
default: 5,
description: 'The number of results to return.',
typeOptions: {
minValue: 1,
maxValue: 1000,
},
displayOptions: {
show: {
resource: [
'campaign',
],
operation: [
'getAll',
],
returnAll: [
false,
],
},
},
},
];