mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-13 16:14:07 -08:00
67 lines
1.1 KiB
TypeScript
67 lines
1.1 KiB
TypeScript
|
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';
|
||
|
|
||
|
import {
|
||
|
INodeProperties,
|
||
|
} from 'n8n-workflow';
|
||
|
|
||
|
export {
|
||
|
del,
|
||
|
download,
|
||
|
getAll,
|
||
|
update,
|
||
|
upload,
|
||
|
};
|
||
|
|
||
|
export const descriptions: INodeProperties[] = [
|
||
|
{
|
||
|
displayName: 'Operation',
|
||
|
name: 'operation',
|
||
|
type: 'options',
|
||
|
displayOptions: {
|
||
|
show: {
|
||
|
resource: [
|
||
|
'file',
|
||
|
],
|
||
|
},
|
||
|
},
|
||
|
options: [
|
||
|
{
|
||
|
name: 'Delete',
|
||
|
value: 'delete',
|
||
|
description: 'Delete a company file',
|
||
|
},
|
||
|
{
|
||
|
name: 'Download',
|
||
|
value: 'download',
|
||
|
description: 'Download a company file',
|
||
|
},
|
||
|
{
|
||
|
name: 'Get All',
|
||
|
value: 'getAll',
|
||
|
description: 'Get all company files',
|
||
|
},
|
||
|
{
|
||
|
name: 'Update',
|
||
|
value: 'update',
|
||
|
description: 'Update a company file',
|
||
|
},
|
||
|
{
|
||
|
name: 'Upload',
|
||
|
value: 'upload',
|
||
|
description: 'Upload a company file',
|
||
|
},
|
||
|
],
|
||
|
default: 'delete',
|
||
|
description: '',
|
||
|
},
|
||
|
...del.description,
|
||
|
...download.description,
|
||
|
...getAll.description,
|
||
|
...update.description,
|
||
|
...upload.description,
|
||
|
];
|