n8n-nodes-tenable-community
Version:
n8n node for the Tenable One platform
80 lines (79 loc) • 2.09 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.downloadsFields = exports.downloadsOperations = void 0;
exports.downloadsOperations = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
displayOptions: {
show: {
resource: [
'pages',
],
},
},
options: [
{
name: 'List',
value: 'list',
description: 'Returns a list of product pages',
action: 'List product pages',
},
{
name: 'Get',
value: 'get',
description: 'Returns a JSON hash of all download files for a given product page',
action: 'Get a product page',
},
{
name: 'Download',
value: 'download',
description: 'Downloads a requested file',
action: 'Download a file',
},
],
default: 'list',
},
];
exports.downloadsFields = [
// PAGES
{
displayName: 'Slug',
name: 'slug',
type: 'string',
required: true,
displayOptions: {
show: {
resource: [
'pages',
],
operation: [
'get',
'download',
],
},
},
default: '',
description: 'The product page slug; for example, `nessus`',
},
{
displayName: 'File',
name: 'file',
type: 'string',
required: true,
displayOptions: {
show: {
resource: [
'pages',
],
operation: [
'download',
],
},
},
default: '',
description: 'The name of the file; for example, `Nessus-latest-x64.msi`',
},
];