2020-04-20 07:35:58 -07:00
|
|
|
import {
|
|
|
|
INodeProperties,
|
2021-03-24 15:01:12 -07:00
|
|
|
} from 'n8n-workflow';
|
2020-04-20 07:35:58 -07:00
|
|
|
|
2021-12-03 00:44:16 -08:00
|
|
|
export const taskDependencyOperations: INodeProperties[] = [
|
2020-04-20 07:35:58 -07:00
|
|
|
{
|
|
|
|
displayName: 'Operation',
|
|
|
|
name: 'operation',
|
|
|
|
type: 'options',
|
2022-05-20 14:47:24 -07:00
|
|
|
noDataExpression: true,
|
2020-04-20 07:35:58 -07:00
|
|
|
displayOptions: {
|
|
|
|
show: {
|
|
|
|
resource: [
|
|
|
|
'taskDependency',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
name: 'Create',
|
|
|
|
value: 'create',
|
|
|
|
description: 'Create a task dependency',
|
2022-07-10 13:50:51 -07:00
|
|
|
action: 'Create a task dependency',
|
2020-04-20 07:35:58 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Delete',
|
|
|
|
value: 'delete',
|
|
|
|
description: 'Delete a task dependency',
|
2022-07-10 13:50:51 -07:00
|
|
|
action: 'Delete a task dependency',
|
2020-04-20 07:35:58 -07:00
|
|
|
},
|
|
|
|
],
|
|
|
|
default: 'create',
|
|
|
|
},
|
2021-12-03 00:44:16 -08:00
|
|
|
];
|
2020-04-20 07:35:58 -07:00
|
|
|
|
2021-12-03 00:44:16 -08:00
|
|
|
export const taskDependencyFields: INodeProperties[] = [
|
2020-04-20 07:35:58 -07:00
|
|
|
|
2021-03-24 15:01:12 -07:00
|
|
|
/* -------------------------------------------------------------------------- */
|
|
|
|
/* taskDependency:create */
|
|
|
|
/* -------------------------------------------------------------------------- */
|
2020-04-20 07:35:58 -07:00
|
|
|
{
|
|
|
|
displayName: 'Task ID',
|
2020-04-20 21:57:39 -07:00
|
|
|
name: 'task',
|
2020-04-20 07:35:58 -07:00
|
|
|
type: 'string',
|
|
|
|
default: '',
|
|
|
|
displayOptions: {
|
|
|
|
show: {
|
|
|
|
resource: [
|
|
|
|
'taskDependency',
|
|
|
|
],
|
|
|
|
operation: [
|
|
|
|
'create',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
{
|
2020-04-22 01:05:45 -07:00
|
|
|
displayName: 'Depends On Task ID',
|
|
|
|
name: 'dependsOnTask',
|
2020-04-20 07:35:58 -07:00
|
|
|
type: 'string',
|
2021-12-03 00:44:16 -08:00
|
|
|
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
|
|
|
},
|
2021-03-24 15:01:12 -07:00
|
|
|
|
|
|
|
/* -------------------------------------------------------------------------- */
|
|
|
|
/* taskDependency:delete */
|
|
|
|
/* -------------------------------------------------------------------------- */
|
2020-04-20 07:35:58 -07:00
|
|
|
{
|
|
|
|
displayName: 'Task ID',
|
2020-04-20 21:57:39 -07:00
|
|
|
name: 'task',
|
2020-04-20 07:35:58 -07:00
|
|
|
type: 'string',
|
|
|
|
default: '',
|
|
|
|
displayOptions: {
|
|
|
|
show: {
|
|
|
|
resource: [
|
|
|
|
'taskDependency',
|
|
|
|
],
|
|
|
|
operation: [
|
|
|
|
'delete',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
{
|
2020-04-22 01:05:45 -07:00
|
|
|
displayName: 'Depends On Task ID',
|
|
|
|
name: 'dependsOnTask',
|
2020-04-20 07:35:58 -07:00
|
|
|
type: 'string',
|
2021-12-03 00:44:16 -08:00
|
|
|
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
|
|
|
},
|
2021-12-03 00:44:16 -08:00
|
|
|
];
|