mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-16 01:24:05 -08:00
50 lines
878 B
TypeScript
50 lines
878 B
TypeScript
|
import * as create from './create';
|
||
|
import * as del from './del';
|
||
|
import * as getAll from './getAll';
|
||
|
|
||
|
import { INodeProperties } from 'n8n-workflow';
|
||
|
|
||
|
|
||
|
export {
|
||
|
create,
|
||
|
del as delete,
|
||
|
getAll,
|
||
|
};
|
||
|
|
||
|
export const descriptions = [
|
||
|
{
|
||
|
displayName: 'Operation',
|
||
|
name: 'operation',
|
||
|
type: 'options',
|
||
|
displayOptions: {
|
||
|
show: {
|
||
|
resource: [
|
||
|
'reaction',
|
||
|
],
|
||
|
},
|
||
|
},
|
||
|
options: [
|
||
|
{
|
||
|
name: 'Create',
|
||
|
value: 'create',
|
||
|
description: 'Add a reaction to a post.',
|
||
|
},
|
||
|
{
|
||
|
name: 'Delete',
|
||
|
value: 'delete',
|
||
|
description: 'Remove a reaction from a post',
|
||
|
},
|
||
|
{
|
||
|
name: 'Get All',
|
||
|
value: 'getAll',
|
||
|
description: 'Get all the reactions to one or more posts',
|
||
|
},
|
||
|
],
|
||
|
default: 'create',
|
||
|
description: 'The operation to perform',
|
||
|
},
|
||
|
...create.description,
|
||
|
...del.description,
|
||
|
...getAll.description,
|
||
|
] as INodeProperties[];
|