n8n/packages/nodes-base/nodes/Mattermost/v1/actions/reaction/index.ts
2021-12-03 09:44:16 +01:00

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,
];