2023-01-27 03:22:44 -08:00
|
|
|
import type { INodeProperties } from 'n8n-workflow';
|
2021-03-24 15:01:12 -07:00
|
|
|
|
2021-12-03 00:44:16 -08:00
|
|
|
export const taskListOperations: INodeProperties[] = [
|
2021-03-24 15:01:12 -07:00
|
|
|
{
|
|
|
|
displayName: 'Operation',
|
|
|
|
name: 'operation',
|
|
|
|
type: 'options',
|
2022-05-20 14:47:24 -07:00
|
|
|
noDataExpression: true,
|
2021-03-24 15:01:12 -07:00
|
|
|
displayOptions: {
|
|
|
|
show: {
|
2022-08-01 13:47:55 -07:00
|
|
|
resource: ['taskList'],
|
2021-03-24 15:01:12 -07:00
|
|
|
},
|
|
|
|
},
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
name: 'Add',
|
|
|
|
value: 'add',
|
|
|
|
description: 'Add a task to a list',
|
2022-07-10 13:50:51 -07:00
|
|
|
action: 'Add a task to a list',
|
2021-03-24 15:01:12 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Remove',
|
|
|
|
value: 'remove',
|
|
|
|
description: 'Remove a task from a list',
|
2022-07-10 13:50:51 -07:00
|
|
|
action: 'Remove a task from a list',
|
2021-03-24 15:01:12 -07:00
|
|
|
},
|
|
|
|
],
|
|
|
|
default: 'add',
|
|
|
|
},
|
2021-12-03 00:44:16 -08:00
|
|
|
];
|
2021-03-24 15:01:12 -07:00
|
|
|
|
2021-12-03 00:44:16 -08:00
|
|
|
export const taskListFields: INodeProperties[] = [
|
2021-03-24 15:01:12 -07:00
|
|
|
/* -------------------------------------------------------------------------- */
|
|
|
|
/* taskList:add */
|
|
|
|
/* -------------------------------------------------------------------------- */
|
|
|
|
{
|
|
|
|
displayName: 'Task ID',
|
|
|
|
name: 'taskId',
|
|
|
|
type: 'string',
|
|
|
|
default: '',
|
|
|
|
displayOptions: {
|
|
|
|
show: {
|
2022-08-01 13:47:55 -07:00
|
|
|
resource: ['taskList'],
|
|
|
|
operation: ['remove', 'add'],
|
2021-03-24 15:01:12 -07:00
|
|
|
},
|
|
|
|
},
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'List ID',
|
|
|
|
name: 'listId',
|
|
|
|
type: 'string',
|
|
|
|
default: '',
|
|
|
|
displayOptions: {
|
|
|
|
show: {
|
2022-08-01 13:47:55 -07:00
|
|
|
resource: ['taskList'],
|
|
|
|
operation: ['remove', 'add'],
|
2021-03-24 15:01:12 -07:00
|
|
|
},
|
|
|
|
},
|
|
|
|
required: true,
|
|
|
|
},
|
2021-12-03 00:44:16 -08:00
|
|
|
];
|