2023-01-27 03:22:44 -08:00
|
|
|
import type { 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: [
|
|
|
|
{
|
2022-09-07 07:51:14 -07:00
|
|
|
name: 'Get Many',
|
2020-11-18 23:37:01 -08:00
|
|
|
value: 'getAll',
|
2022-09-13 03:36:36 -07:00
|
|
|
description: 'Get many lists',
|
2022-09-08 08:10:13 -07:00
|
|
|
action: 'Get many 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
|
|
|
];
|