mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
[N8N-4995](https://linear.app/n8n/issue/N8N-4995) --------- Co-authored-by: Giulio Andreini <g.andreini@gmail.com>
53 lines
1.2 KiB
TypeScript
53 lines
1.2 KiB
TypeScript
import type { INodeProperties } from 'n8n-workflow';
|
|
import * as add from './add.operation';
|
|
import * as download from './download.operation';
|
|
import * as get from './get.operation';
|
|
import * as getAll from './getAll.operation';
|
|
|
|
export { add, download, get, getAll };
|
|
|
|
export const description: INodeProperties[] = [
|
|
{
|
|
displayName: 'Operation',
|
|
name: 'operation',
|
|
type: 'options',
|
|
noDataExpression: true,
|
|
displayOptions: {
|
|
show: {
|
|
resource: ['messageAttachment'],
|
|
},
|
|
},
|
|
options: [
|
|
{
|
|
name: 'Add',
|
|
value: 'add',
|
|
description: 'Add an attachment to a message',
|
|
action: 'Add an attachment',
|
|
},
|
|
{
|
|
name: 'Download',
|
|
value: 'download',
|
|
description: 'Download an attachment from a message',
|
|
action: 'Download an attachment',
|
|
},
|
|
{
|
|
name: 'Get',
|
|
value: 'get',
|
|
description: 'Retrieve information about an attachment of a message',
|
|
action: 'Get an attachment',
|
|
},
|
|
{
|
|
name: 'Get Many',
|
|
value: 'getAll',
|
|
description: 'Retrieve information about the attachments of a message',
|
|
action: 'Get many attachments',
|
|
},
|
|
],
|
|
default: 'add',
|
|
},
|
|
...add.description,
|
|
...download.description,
|
|
...get.description,
|
|
...getAll.description,
|
|
];
|