n8n-nodes-smartsuite
Version:
n8n community node for SmartSuite
54 lines • 1.88 kB
JavaScript
;
// src/nodes/SmartSuite/actions/solution/SolutionDescription.ts
Object.defineProperty(exports, "__esModule", { value: true });
exports.solutionDescription = void 0;
const resourceInputs_1 = require("../../shared/resourceInputs");
exports.solutionDescription = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
displayOptions: { show: { resource: ['solution'] } },
options: [
{ name: 'List Solutions', value: 'listSolution', action: 'List Solutions', description: 'List all solutions' },
{ name: 'Get Solution', value: 'getSolution', action: 'Get Solution', description: 'Retrieve a solution by ID' },
],
default: 'listSolution',
description: 'The operation to perform on a Solution',
},
// List Solutions fields
{
displayName: 'Return All',
name: 'returnAll',
type: 'boolean',
default: false,
description: 'Return all solutions (paginated)',
displayOptions: {
show: { resource: ['solution'], operation: ['listSolution'] },
},
},
{
displayName: 'Limit',
name: 'limit',
type: 'number',
default: 50,
typeOptions: { minValue: 1, maxValue: 1000 },
description: 'Max number of results to return',
displayOptions: {
show: {
resource: ['solution'],
operation: ['listSolution'],
returnAll: [false],
},
},
},
// Get Solution field
{
...resourceInputs_1.solutionInput,
required: true,
displayOptions: { show: { resource: ['solution'], operation: ['getSolution'] } },
description: 'ID of the solution to retrieve',
},
];
//# sourceMappingURL=SolutionDescription.js.map