mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-02 07:01:30 -08:00
81 lines
1.2 KiB
TypeScript
81 lines
1.2 KiB
TypeScript
import {
|
|
INodeProperties,
|
|
} from 'n8n-workflow';
|
|
|
|
export const postCommentOperations = [
|
|
{
|
|
displayName: 'Operation',
|
|
name: 'operation',
|
|
type: 'options',
|
|
default: 'create',
|
|
description: 'Operation to perform',
|
|
options: [
|
|
{
|
|
name: 'Add',
|
|
value: 'add',
|
|
},
|
|
{
|
|
name: 'Get All',
|
|
value: 'getAll',
|
|
},
|
|
{
|
|
name: 'Remove',
|
|
value: 'remove',
|
|
},
|
|
{
|
|
name: 'Reply',
|
|
value: 'reply',
|
|
},
|
|
],
|
|
displayOptions: {
|
|
show: {
|
|
resource: [
|
|
'postComment',
|
|
],
|
|
},
|
|
},
|
|
},
|
|
] as INodeProperties[];
|
|
|
|
export const postCommentFields = [
|
|
// ----------------------------------
|
|
// postComment: add
|
|
// ----------------------------------
|
|
{
|
|
displayName: 'Target ID',
|
|
name: 'targetId',
|
|
type: 'string',
|
|
default: '',
|
|
description: 'ID of the comment target.',
|
|
placeholder: 't3_15bfi0',
|
|
displayOptions: {
|
|
show: {
|
|
resource: [
|
|
'postComment',
|
|
],
|
|
operation: [
|
|
'add',
|
|
],
|
|
},
|
|
},
|
|
},
|
|
{
|
|
displayName: 'Text',
|
|
name: 'text',
|
|
type: 'string',
|
|
required: true,
|
|
default: '',
|
|
description: 'Text of the comment. Markdown supported.',
|
|
displayOptions: {
|
|
show: {
|
|
resource: [
|
|
'postComment',
|
|
],
|
|
operation: [
|
|
'add',
|
|
],
|
|
},
|
|
},
|
|
},
|
|
] as INodeProperties[];
|