n8n/packages/nodes-base/nodes/ClickUp/TaskDependencyDescription.ts
Iván Ovejero b03e358a12
refactor: Integrate consistent-type-imports in nodes-base (no-changelog) (#5267)
* 👕 Enable `consistent-type-imports` for nodes-base

* 👕 Apply to nodes-base

*  Undo unrelated changes

* 🚚 Move to `.eslintrc.js` in nodes-base

*  Revert "Enable `consistent-type-imports` for nodes-base"

This reverts commit 529ad72b05.

* 👕 Fix severity
2023-01-27 12:22:44 +01:00

93 lines
2 KiB
TypeScript

import type { INodeProperties } from 'n8n-workflow';
export const taskDependencyOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
displayOptions: {
show: {
resource: ['taskDependency'],
},
},
options: [
{
name: 'Create',
value: 'create',
description: 'Create a task dependency',
action: 'Create a task dependency',
},
{
name: 'Delete',
value: 'delete',
description: 'Delete a task dependency',
action: 'Delete a task dependency',
},
],
default: 'create',
},
];
export const taskDependencyFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* taskDependency:create */
/* -------------------------------------------------------------------------- */
{
displayName: 'Task ID',
name: 'task',
type: 'string',
default: '',
displayOptions: {
show: {
resource: ['taskDependency'],
operation: ['create'],
},
},
required: true,
},
{
displayName: 'Depends On Task ID',
name: 'dependsOnTask',
type: 'string',
default: '',
displayOptions: {
show: {
resource: ['taskDependency'],
operation: ['create'],
},
},
required: true,
},
/* -------------------------------------------------------------------------- */
/* taskDependency:delete */
/* -------------------------------------------------------------------------- */
{
displayName: 'Task ID',
name: 'task',
type: 'string',
default: '',
displayOptions: {
show: {
resource: ['taskDependency'],
operation: ['delete'],
},
},
required: true,
},
{
displayName: 'Depends On Task ID',
name: 'dependsOnTask',
type: 'string',
default: '',
displayOptions: {
show: {
resource: ['taskDependency'],
operation: ['delete'],
},
},
required: true,
},
];