UNPKG

n8n-nodes-base

Version:

Base nodes of n8n

59 lines 1.84 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 to be updated' }, { displayName: 'Item Contents', name: 'customProperties', default: '{}', description: 'The item contents as a JSON object', displayOptions: { hide: { ...utils_1.untilContainerSelected, ...utils_1.untilItemSelected, }, }, required: true, routing: { send: { preSend: [utils_1.validateCustomProperties], }, }, type: 'json', }, { displayName: 'Additional Fields', name: 'additionalFields', default: {}, displayOptions: { hide: { ...utils_1.untilContainerSelected, ...utils_1.untilItemSelected, }, }, options: [ { displayName: 'Partition Key', name: 'partitionKey', type: 'string', hint: 'Only required if a custom partition key is set for the container', default: '', }, ], placeholder: 'Add Partition Key', type: 'collection', }, ]; const displayOptions = { show: { resource: ['item'], operation: ['update'], }, }; exports.description = (0, n8n_workflow_1.updateDisplayOptions)(displayOptions, properties); //# sourceMappingURL=update.operation.js.map