mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-26 21:19:43 -08:00
0ecbb4a19d
* 🔨 prettier formated nodes - A * 🔨 prettier formated nodes - B * ⚡ prettier formated nodes - C * ⚡ prettier formated nodes - D * ⚡ prettier formated nodes - E-F * 🎨 Adjust nodes-base formatting command (#3805) * Format additional files in nodes A-F (#3811) * ⚡ fixes * 🎨 Add Mindee to ignored dirs Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
190 lines
3.8 KiB
TypeScript
190 lines
3.8 KiB
TypeScript
import { INodeProperties } from 'n8n-workflow';
|
|
|
|
export const checklistItemOperations: INodeProperties[] = [
|
|
{
|
|
displayName: 'Operation',
|
|
name: 'operation',
|
|
type: 'options',
|
|
noDataExpression: true,
|
|
displayOptions: {
|
|
show: {
|
|
resource: ['checklistItem'],
|
|
},
|
|
},
|
|
options: [
|
|
{
|
|
name: 'Create',
|
|
value: 'create',
|
|
description: 'Create a checklist item',
|
|
action: 'Create a checklist item',
|
|
},
|
|
{
|
|
name: 'Delete',
|
|
value: 'delete',
|
|
description: 'Delete a checklist item',
|
|
action: 'Delete a checklist item',
|
|
},
|
|
{
|
|
name: 'Update',
|
|
value: 'update',
|
|
description: 'Update a checklist item',
|
|
action: 'Update a checklist item',
|
|
},
|
|
],
|
|
default: 'create',
|
|
},
|
|
];
|
|
|
|
export const checklistItemFields: INodeProperties[] = [
|
|
/* -------------------------------------------------------------------------- */
|
|
/* checklistItem:create */
|
|
/* -------------------------------------------------------------------------- */
|
|
{
|
|
displayName: 'Checklist ID',
|
|
name: 'checklist',
|
|
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',
|
|
type: 'string',
|
|
default: '',
|
|
},
|
|
],
|
|
},
|
|
|
|
/* -------------------------------------------------------------------------- */
|
|
/* checklistItem:delete */
|
|
/* -------------------------------------------------------------------------- */
|
|
{
|
|
displayName: 'Checklist ID',
|
|
name: 'checklist',
|
|
type: 'string',
|
|
default: '',
|
|
displayOptions: {
|
|
show: {
|
|
resource: ['checklistItem'],
|
|
operation: ['delete'],
|
|
},
|
|
},
|
|
required: true,
|
|
},
|
|
{
|
|
displayName: 'Checklist Item ID',
|
|
name: 'checklistItem',
|
|
type: 'string',
|
|
default: '',
|
|
displayOptions: {
|
|
show: {
|
|
resource: ['checklistItem'],
|
|
operation: ['delete'],
|
|
},
|
|
},
|
|
required: true,
|
|
},
|
|
|
|
/* -------------------------------------------------------------------------- */
|
|
/* checklistItem:update */
|
|
/* -------------------------------------------------------------------------- */
|
|
{
|
|
displayName: 'Checklist ID',
|
|
name: 'checklist',
|
|
type: 'string',
|
|
default: '',
|
|
displayOptions: {
|
|
show: {
|
|
resource: ['checklistItem'],
|
|
operation: ['update'],
|
|
},
|
|
},
|
|
required: true,
|
|
},
|
|
{
|
|
displayName: 'Checklist Item ID',
|
|
name: 'checklistItem',
|
|
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',
|
|
type: 'string',
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'Name',
|
|
name: 'name',
|
|
type: 'string',
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'Parent Checklist Item ID',
|
|
name: 'parent',
|
|
type: 'string',
|
|
default: '',
|
|
description: 'Checklist item that you want to nest the target checklist item underneath',
|
|
},
|
|
{
|
|
displayName: 'Resolved',
|
|
name: 'resolved',
|
|
type: 'boolean',
|
|
default: false,
|
|
},
|
|
],
|
|
},
|
|
];
|