n8n/packages/nodes-base/nodes/ClickUp/TaskDependencyDescription.ts

112 lines
2 KiB
TypeScript
Raw Normal View History

2020-04-20 07:35:58 -07:00
import {
INodeProperties,
} from 'n8n-workflow';
2020-04-20 07:35:58 -07:00
export const taskDependencyOperations: INodeProperties[] = [
2020-04-20 07:35:58 -07:00
{
displayName: 'Operation',
name: 'operation',
type: 'options',
displayOptions: {
show: {
resource: [
'taskDependency',
],
},
},
options: [
{
name: 'Create',
value: 'create',
description: 'Create a task dependency',
},
{
name: 'Delete',
value: 'delete',
description: 'Delete a task dependency',
},
],
default: 'create',
description: 'The operation to perform.',
},
];
2020-04-20 07:35:58 -07:00
export const taskDependencyFields: INodeProperties[] = [
2020-04-20 07:35:58 -07:00
/* -------------------------------------------------------------------------- */
/* taskDependency:create */
/* -------------------------------------------------------------------------- */
2020-04-20 07:35:58 -07:00
{
displayName: 'Task ID',
name: 'task',
2020-04-20 07:35:58 -07:00
type: 'string',
default: '',
displayOptions: {
show: {
resource: [
'taskDependency',
],
operation: [
'create',
],
},
},
required: true,
},
{
displayName: 'Depends On Task ID',
name: 'dependsOnTask',
2020-04-20 07:35:58 -07:00
type: 'string',
default: '',
2020-04-20 07:35:58 -07:00
displayOptions: {
show: {
resource: [
'taskDependency',
],
operation: [
'create',
],
},
},
2020-04-21 18:12:20 -07:00
required: true,
2020-04-20 07:35:58 -07:00
},
/* -------------------------------------------------------------------------- */
/* taskDependency:delete */
/* -------------------------------------------------------------------------- */
2020-04-20 07:35:58 -07:00
{
displayName: 'Task ID',
name: 'task',
2020-04-20 07:35:58 -07:00
type: 'string',
default: '',
displayOptions: {
show: {
resource: [
'taskDependency',
],
operation: [
'delete',
],
},
},
required: true,
},
{
displayName: 'Depends On Task ID',
name: 'dependsOnTask',
2020-04-20 07:35:58 -07:00
type: 'string',
default: '',
2020-04-20 07:35:58 -07:00
displayOptions: {
show: {
resource: [
'taskDependency',
],
operation: [
'delete',
],
},
},
2020-04-21 18:12:20 -07:00
required: true,
2020-04-20 07:35:58 -07:00
},
];