n8n/packages/nodes-base/nodes/BambooHr/v1/actions/file/index.ts
Iván Ovejero 62c096710f
refactor: Run lintfix (no-changelog) (#7537)
- Fix autofixable violations
- Remove unused directives
- Allow for PascalCased variables - needed for dynamically imported or
assigned classes, decorators, routers, etc.
2023-10-27 14:15:02 +02:00

61 lines
1.3 KiB
TypeScript

import type { INodeProperties } from 'n8n-workflow';
import * as del from './del';
import * as download from './download';
import * as getAll from './getAll';
import * as update from './update';
import * as upload from './upload';
export { del, download, getAll, update, upload };
export const descriptions: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
displayOptions: {
show: {
resource: ['file'],
},
},
options: [
{
name: 'Delete',
value: 'delete',
description: 'Delete a company file',
action: 'Delete a file',
},
{
name: 'Download',
value: 'download',
description: 'Download a company file',
action: 'Download a file',
},
{
name: 'Get Many',
value: 'getAll',
description: 'Get many company files',
action: 'Get many files',
},
{
name: 'Update',
value: 'update',
description: 'Update a company file',
action: 'Update a file',
},
{
name: 'Upload',
value: 'upload',
description: 'Upload a company file',
action: 'Upload a file',
},
],
default: 'delete',
},
...del.description,
...download.description,
...getAll.description,
...update.description,
...upload.description,
];