mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-11 23:24:06 -08:00
6f95121fac
* 👕 Add `action` to `INodePropertyOptions` * 👕 Apply `node-param-operation-option-without-action` * ✏️ Fix add/remove phrasing * ✏️ Fix email template phrasing * ✏️ Fix add/remove phrasing * ✏️ Fix custom fields phrasing * ✏️ Fix job report phrasing * ✏️ Fix query phrasing * ✏️ Various phrasing fixes * ✏️ Fix final phrasings * ✏️ Remove `conversation` * ✏️ Fix plural
72 lines
1.3 KiB
TypeScript
72 lines
1.3 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',
|
|
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 All',
|
|
value: 'getAll',
|
|
description: 'Get all company files',
|
|
action: 'Get all 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,
|
|
];
|