Files
n8n-enterprise-unlocked/packages/nodes-base/nodes/Microsoft/Outlook/v2/actions/messageAttachment/index.ts
2023-09-15 12:52:18 +03:00

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