n8n-nodes-base
Version:
Base nodes of n8n
59 lines • 1.74 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.mediaFields = exports.mediaOperations = void 0;
exports.mediaOperations = [
{
displayName: 'Operation',
name: 'operation',
noDataExpression: true,
type: 'options',
displayOptions: {
show: {
resource: ['media'],
},
},
options: [
{
name: 'Download',
value: 'download',
description: 'Download media',
action: 'Download media',
},
],
default: 'download',
},
];
exports.mediaFields = [
/* -------------------------------------------------------------------------- */
/* media:download */
/* -------------------------------------------------------------------------- */
{
displayName: 'Resource Name',
name: 'resourceName',
type: 'string',
required: true,
displayOptions: {
show: {
resource: ['media'],
operation: ['download'],
},
},
default: '',
description: 'Name of the media that is being downloaded',
},
{
displayName: 'Put Output File in Field',
name: 'binaryPropertyName',
type: 'string',
default: 'data',
required: true,
displayOptions: {
show: {
resource: ['media'],
operation: ['download'],
},
},
hint: 'The name of the output binary field to put the file in',
},
];
//# sourceMappingURL=MediaDescription.js.map