mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-28 05:59:42 -08:00
69 lines
1.1 KiB
TypeScript
69 lines
1.1 KiB
TypeScript
import {
|
|
INodeProperties,
|
|
} from 'n8n-workflow';
|
|
|
|
export const commentOperations = [
|
|
{
|
|
displayName: 'Operation',
|
|
name: 'operation',
|
|
type: 'options',
|
|
default: 'create',
|
|
description: 'Operation to perform',
|
|
options: [
|
|
{
|
|
name: 'Create',
|
|
value: 'create',
|
|
},
|
|
],
|
|
displayOptions: {
|
|
show: {
|
|
resource: [
|
|
'comment',
|
|
],
|
|
},
|
|
},
|
|
},
|
|
] as INodeProperties[];
|
|
|
|
export const commentFields = [
|
|
// ----------------------------------
|
|
// comment: create
|
|
// ----------------------------------
|
|
{
|
|
displayName: 'Target',
|
|
name: 'target',
|
|
type: 'string',
|
|
default: '',
|
|
description: 'ID of the comment target',
|
|
placeholder: 't3_15bfi0',
|
|
displayOptions: {
|
|
show: {
|
|
resource: [
|
|
'comment',
|
|
],
|
|
operation: [
|
|
'create',
|
|
],
|
|
},
|
|
},
|
|
},
|
|
{
|
|
displayName: 'Text',
|
|
name: 'text',
|
|
type: 'string',
|
|
required: true,
|
|
default: '',
|
|
description: 'Text of the comment (Markdown supported)',
|
|
displayOptions: {
|
|
show: {
|
|
resource: [
|
|
'comment',
|
|
],
|
|
operation: [
|
|
'create',
|
|
],
|
|
},
|
|
},
|
|
},
|
|
] as INodeProperties[];
|