mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-28 14:09:43 -08:00
50 lines
876 B
TypeScript
50 lines
876 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: INodeProperties[] = [
|
|
{
|
|
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,
|
|
];
|