@brave/n8n-nodes-brave-search
Version:
A n8n node for the Brave Search API
34 lines • 956 B
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const parameters = [];
const optional_parameters = [];
parameters.push({
displayName: 'Query',
name: 'query',
type: 'string',
default: '',
description: 'The user’s search query term. Cannot be empty. Maximum of 400 characters and 50 words in the query.',
required: true,
}, {
displayName: 'Count',
name: 'count',
type: 'number',
default: 10,
description: 'Number of results to return. Must be between 1 and 20.',
typeOptions: {
minValue: 1,
maxValue: 20,
},
});
if (optional_parameters.length > 0) {
parameters.push({
displayName: 'Additional Parameters',
name: 'additionalParameters',
type: 'collection',
default: {},
placeholder: 'Add Parameter',
options: optional_parameters,
});
}
exports.default = parameters;
//# sourceMappingURL=parameters.js.map