2020-11-18 23:37:01 -08:00
|
|
|
import {
|
|
|
|
INodeProperties,
|
|
|
|
} from 'n8n-workflow';
|
|
|
|
|
|
|
|
import {
|
|
|
|
activeCampaignDefaultGetAllProperties,
|
|
|
|
} from './GenericFunctions';
|
|
|
|
|
2021-12-03 00:44:16 -08:00
|
|
|
export const listOperations: INodeProperties[] = [
|
2020-11-18 23:37:01 -08:00
|
|
|
{
|
|
|
|
displayName: 'Operation',
|
|
|
|
name: 'operation',
|
|
|
|
type: 'options',
|
2022-05-20 14:47:24 -07:00
|
|
|
noDataExpression: true,
|
2020-11-18 23:37:01 -08:00
|
|
|
displayOptions: {
|
|
|
|
show: {
|
|
|
|
resource: [
|
|
|
|
'list',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
name: 'Get All',
|
|
|
|
value: 'getAll',
|
|
|
|
description: 'Get all lists',
|
2022-07-10 13:50:51 -07:00
|
|
|
action: 'Get all lists',
|
2020-11-18 23:37:01 -08:00
|
|
|
},
|
|
|
|
],
|
|
|
|
default: 'getAll',
|
|
|
|
},
|
2021-12-03 00:44:16 -08:00
|
|
|
];
|
2020-11-18 23:37:01 -08:00
|
|
|
|
2021-12-03 00:44:16 -08:00
|
|
|
export const listFields: INodeProperties[] = [
|
2020-11-18 23:37:01 -08:00
|
|
|
// ----------------------------------
|
|
|
|
// list:getAll
|
|
|
|
// ----------------------------------
|
|
|
|
...activeCampaignDefaultGetAllProperties('list', 'getAll'),
|
2021-12-03 00:44:16 -08:00
|
|
|
];
|