2022-08-01 13:47:55 -07:00
|
|
|
import { INodeProperties } from 'n8n-workflow';
|
2020-11-18 23:37:01 -08:00
|
|
|
|
2022-08-01 13:47:55 -07:00
|
|
|
import { activeCampaignDefaultGetAllProperties } from './GenericFunctions';
|
2020-11-18 23:37:01 -08:00
|
|
|
|
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: {
|
2022-08-01 13:47:55 -07:00
|
|
|
resource: ['list'],
|
2020-11-18 23:37:01 -08:00
|
|
|
},
|
|
|
|
},
|
|
|
|
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
|
|
|
];
|