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

224 lines
3.9 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 checklistItemOperations: INodeProperties[] = [
2020-04-20 07:35:58 -07:00
{
displayName: 'Operation',
name: 'operation',
type: 'options',
displayOptions: {
show: {
resource: [
'checklistItem',
],
},
},
options: [
{
name: 'Create',
value: 'create',
description: 'Create a checklist item',
},
{
name: 'Delete',
value: 'delete',
description: 'Delete a checklist item',
},
{
name: 'Update',
value: 'update',
description: 'Update a checklist item',
},
],
default: 'create',
description: 'The operation to perform.',
},
];
2020-04-20 07:35:58 -07:00
export const checklistItemFields: INodeProperties[] = [
2020-04-20 07:35:58 -07:00
/* -------------------------------------------------------------------------- */
/* checklistItem:create */
/* -------------------------------------------------------------------------- */
2020-04-20 07:35:58 -07:00
{
displayName: 'Checklist ID',
name: 'checklist',
2020-04-20 07:35:58 -07:00
type: 'string',
default: '',
displayOptions: {
show: {
resource: [
'checklistItem',
],
operation: [
'create',
],
},
},
required: true,
},
{
displayName: 'Name',
name: 'name',
type: 'string',
default: '',
displayOptions: {
show: {
resource: [
'checklistItem',
],
operation: [
'create',
],
},
},
required: true,
},
{
displayName: 'Additional Fields',
name: 'additionalFields',
type: 'collection',
placeholder: 'Add Field',
default: {},
displayOptions: {
show: {
resource: [
'checklistItem',
],
operation: [
'create',
],
},
},
options: [
{
displayName: 'Assignee ID',
name: 'assignee',
2020-04-20 07:35:58 -07:00
type: 'string',
default: '',
},
],
},
/* -------------------------------------------------------------------------- */
/* checklistItem:delete */
/* -------------------------------------------------------------------------- */
2020-04-20 07:35:58 -07:00
{
displayName: 'Checklist ID',
name: 'checklist',
2020-04-20 07:35:58 -07:00
type: 'string',
default: '',
displayOptions: {
show: {
resource: [
'checklistItem',
],
operation: [
'delete',
],
},
},
required: true,
},
{
displayName: 'Checklist Item ID',
name: 'checklistItem',
2020-04-20 07:35:58 -07:00
type: 'string',
default: '',
displayOptions: {
show: {
resource: [
'checklistItem',
],
operation: [
'delete',
],
},
},
required: true,
},
/* -------------------------------------------------------------------------- */
/* checklistItem:update */
/* -------------------------------------------------------------------------- */
2020-04-20 07:35:58 -07:00
{
displayName: 'Checklist ID',
name: 'checklist',
2020-04-20 07:35:58 -07:00
type: 'string',
default: '',
displayOptions: {
show: {
resource: [
'checklistItem',
],
operation: [
'update',
],
},
},
required: true,
},
{
displayName: 'Checklist Item ID',
name: 'checklistItem',
2020-04-20 07:35:58 -07:00
type: 'string',
default: '',
displayOptions: {
show: {
resource: [
'checklistItem',
],
operation: [
'update',
],
},
},
required: true,
},
{
displayName: 'Update Fields',
name: 'updateFields',
type: 'collection',
placeholder: 'Add Field',
default: {},
displayOptions: {
show: {
resource: [
'checklistItem',
],
operation: [
'update',
],
},
},
options: [
{
displayName: 'Assignee ID',
name: 'assignee',
2020-04-20 07:35:58 -07:00
type: 'string',
default: '',
},
{
displayName: 'Name',
name: 'name',
type: 'string',
default: '',
},
{
displayName: 'Parent Checklist Item ID',
name: 'parent',
2020-04-20 07:35:58 -07:00
type: 'string',
default: '',
description: 'Checklist item that you want to nest the target checklist item underneath',
2020-04-20 07:35:58 -07:00
},
{
displayName: 'Resolved',
name: 'resolved',
type: 'boolean',
default: false,
},
],
},
];