Minor improvements to ClickUp-Node

This commit is contained in:
Jan Oberhauser
2020-10-10 19:12:19 +02:00
parent 15c0eae56d
commit edd2d39fb1
2 changed files with 49 additions and 38 deletions

View File

@@ -1,6 +1,6 @@
import {
INodeProperties,
} from 'n8n-workflow';
} from 'n8n-workflow';
export const timeEntryOperations = [
{
@@ -23,12 +23,12 @@ export const timeEntryOperations = [
{
name: 'Delete',
value: 'delete',
description:'Delete a time entry',
description: 'Delete a time entry',
},
{
name: 'Get',
value: 'get',
description:'Get a time entry',
description: 'Get a time entry',
},
{
name: 'Get All',
@@ -38,17 +38,17 @@ export const timeEntryOperations = [
{
name: 'Start',
value: 'start',
description:'Start a time entry',
description: 'Start a time entry',
},
{
name: 'Stop',
value: 'stop',
description:'Stop the current running timer',
description: 'Stop the current running timer',
},
{
name: 'Update',
value: 'update',
description:'Update a time Entry',
description: 'Update a time Entry',
},
],
default: 'create',
@@ -58,9 +58,9 @@ export const timeEntryOperations = [
export const timeEntryFields = [
/* -------------------------------------------------------------------------- */
/* timeEntry:getAll */
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
/* timeEntry:getAll */
/* -------------------------------------------------------------------------- */
{
displayName: 'Team ID',
name: 'team',
@@ -153,9 +153,10 @@ export const timeEntryFields = [
},
],
},
/* -------------------------------------------------------------------------- */
/* timeEntry:get */
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
/* timeEntry:get */
/* -------------------------------------------------------------------------- */
{
displayName: 'Team ID',
name: 'team',
@@ -213,9 +214,10 @@ export const timeEntryFields = [
},
required: true,
},
/* -------------------------------------------------------------------------- */
/* timeEntry:create */
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
/* timeEntry:create */
/* -------------------------------------------------------------------------- */
{
displayName: 'Team ID',
name: 'team',
@@ -467,9 +469,10 @@ export const timeEntryFields = [
},
],
},
/* -------------------------------------------------------------------------- */
/* timeEntry:start */
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
/* timeEntry:start */
/* -------------------------------------------------------------------------- */
{
displayName: 'Team ID',
name: 'team',
@@ -539,9 +542,10 @@ export const timeEntryFields = [
},
],
},
/* -------------------------------------------------------------------------- */
/* timeEntry:stop */
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
/* timeEntry:stop */
/* -------------------------------------------------------------------------- */
{
displayName: 'Team ID',
name: 'team',
@@ -562,9 +566,10 @@ export const timeEntryFields = [
},
required: true,
},
/* -------------------------------------------------------------------------- */
/* timeEntry:delete */
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
/* timeEntry:delete */
/* -------------------------------------------------------------------------- */
{
displayName: 'Team ID',
name: 'team',
@@ -602,9 +607,10 @@ export const timeEntryFields = [
},
required: true,
},
/* -------------------------------------------------------------------------- */
/* timeEntry:update */
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
/* timeEntry:update */
/* -------------------------------------------------------------------------- */
{
displayName: 'Team ID',
name: 'team',