UNPKG

n8n-nodes-base

Version:

Base nodes of n8n

53 lines 1.73 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.description = void 0; const n8n_workflow_1 = require("n8n-workflow"); const utils_1 = require("../../helpers/utils"); const common_1 = require("../common"); const properties = [ { ...common_1.containerResourceLocator, description: 'Select the container you want to use' }, { ...common_1.itemResourceLocator, description: 'Select the item you want to retrieve' }, { displayName: 'Simplify', name: 'simple', default: true, description: 'Whether to return a simplified version of the response instead of the raw data', displayOptions: { hide: { ...utils_1.untilContainerSelected, ...utils_1.untilItemSelected, }, }, type: 'boolean', }, { displayName: 'Additional Fields', name: 'additionalFields', default: {}, displayOptions: { hide: { ...utils_1.untilContainerSelected, ...utils_1.untilItemSelected, }, }, options: [ { displayName: 'Partition Key', name: 'partitionKey', default: '', hint: 'Only required if a custom partition key is set for the container', type: 'string', }, ], placeholder: 'Add Partition Key', type: 'collection', }, ]; const displayOptions = { show: { resource: ['item'], operation: ['get'], }, }; exports.description = (0, n8n_workflow_1.updateDisplayOptions)(displayOptions, properties); //# sourceMappingURL=get.operation.js.map