mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
38 lines
819 B
TypeScript
38 lines
819 B
TypeScript
import type { INodeProperties } from 'n8n-workflow';
|
|
|
|
import * as getPublicURL from './getPublicURL.operation';
|
|
import * as upload from './upload.operation';
|
|
|
|
export { upload, getPublicURL };
|
|
|
|
export const descriptions: INodeProperties[] = [
|
|
{
|
|
displayName: 'Operation',
|
|
name: 'operation',
|
|
type: 'options',
|
|
noDataExpression: true,
|
|
displayOptions: {
|
|
show: {
|
|
resource: ['asset'],
|
|
},
|
|
},
|
|
options: [
|
|
{
|
|
name: 'Public URL',
|
|
value: 'getPublicURL',
|
|
description: 'Get the public URL from asset path',
|
|
action: 'Get the public URL from asset path',
|
|
},
|
|
{
|
|
name: 'Upload',
|
|
value: 'upload',
|
|
description: 'Add a file/image to an existing row',
|
|
action: 'Upload a file or image',
|
|
},
|
|
],
|
|
default: 'upload',
|
|
},
|
|
...upload.description,
|
|
...getPublicURL.description,
|
|
];
|