mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-17 18:14:05 -08:00
178 lines
2.9 KiB
TypeScript
178 lines
2.9 KiB
TypeScript
import {
|
|
INodeProperties,
|
|
} from 'n8n-workflow';
|
|
|
|
export const cardCommentOperations: INodeProperties[] = [
|
|
{
|
|
displayName: 'Operation',
|
|
name: 'operation',
|
|
type: 'options',
|
|
displayOptions: {
|
|
show: {
|
|
resource: [
|
|
'cardComment',
|
|
],
|
|
},
|
|
},
|
|
options: [
|
|
{
|
|
name: 'Create',
|
|
value: 'create',
|
|
description: 'Create a comment on a card',
|
|
},
|
|
{
|
|
name: 'Delete',
|
|
value: 'delete',
|
|
description: 'Delete a comment from a card',
|
|
},
|
|
{
|
|
name: 'Update',
|
|
value: 'update',
|
|
description: 'Update a comment on a card',
|
|
},
|
|
],
|
|
default: 'create',
|
|
description: 'The operation to perform.',
|
|
},
|
|
];
|
|
|
|
export const cardCommentFields: INodeProperties[] = [
|
|
// ----------------------------------
|
|
// cardComment:create
|
|
// ----------------------------------
|
|
{
|
|
displayName: 'Card ID',
|
|
name: 'cardId',
|
|
type: 'string',
|
|
default: '',
|
|
required: true,
|
|
displayOptions: {
|
|
show: {
|
|
operation: [
|
|
'create',
|
|
],
|
|
resource: [
|
|
'cardComment',
|
|
],
|
|
},
|
|
},
|
|
description: 'The id of the card',
|
|
},
|
|
{
|
|
displayName: 'Text',
|
|
name: 'text',
|
|
type: 'string',
|
|
default: '',
|
|
required: true,
|
|
displayOptions: {
|
|
show: {
|
|
operation: [
|
|
'create',
|
|
],
|
|
resource: [
|
|
'cardComment',
|
|
],
|
|
},
|
|
},
|
|
description: 'Text of the comment',
|
|
},
|
|
|
|
// ----------------------------------
|
|
// cardComment:remove
|
|
// ----------------------------------
|
|
{
|
|
displayName: 'Card ID',
|
|
name: 'cardId',
|
|
type: 'string',
|
|
default: '',
|
|
required: true,
|
|
displayOptions: {
|
|
show: {
|
|
operation: [
|
|
'delete',
|
|
],
|
|
resource: [
|
|
'cardComment',
|
|
],
|
|
},
|
|
},
|
|
description: 'The ID of the card.',
|
|
},
|
|
{
|
|
displayName: 'Comment ID',
|
|
name: 'commentId',
|
|
type: 'string',
|
|
default: '',
|
|
required: true,
|
|
displayOptions: {
|
|
show: {
|
|
operation: [
|
|
'delete',
|
|
],
|
|
resource: [
|
|
'cardComment',
|
|
],
|
|
},
|
|
},
|
|
description: 'The ID of the comment to delete.',
|
|
},
|
|
|
|
// ----------------------------------
|
|
// cardComment:update
|
|
// ----------------------------------
|
|
{
|
|
displayName: 'Card ID',
|
|
name: 'cardId',
|
|
type: 'string',
|
|
default: '',
|
|
required: true,
|
|
displayOptions: {
|
|
show: {
|
|
operation: [
|
|
'update',
|
|
],
|
|
resource: [
|
|
'cardComment',
|
|
],
|
|
},
|
|
},
|
|
description: 'The ID of the card to update.',
|
|
},
|
|
{
|
|
displayName: 'Comment ID',
|
|
name: 'commentId',
|
|
type: 'string',
|
|
default: '',
|
|
required: true,
|
|
displayOptions: {
|
|
show: {
|
|
operation: [
|
|
'update',
|
|
],
|
|
resource: [
|
|
'cardComment',
|
|
],
|
|
},
|
|
},
|
|
description: 'The ID of the comment to delete.',
|
|
},
|
|
{
|
|
displayName: 'Text',
|
|
name: 'text',
|
|
type: 'string',
|
|
default: '',
|
|
required: true,
|
|
displayOptions: {
|
|
show: {
|
|
operation: [
|
|
'update',
|
|
],
|
|
resource: [
|
|
'cardComment',
|
|
],
|
|
},
|
|
},
|
|
description: 'Text of the comment',
|
|
},
|
|
];
|