Files
Agent-n8n/n8n-n8n-1.109.2/packages/nodes-base/nodes/Microsoft/AzureCosmosDb/descriptions/item/delete.operation.ts
2025-09-08 04:48:28 +08:00

41 lines
1.0 KiB
TypeScript
Executable File

import { updateDisplayOptions, type INodeProperties } from 'n8n-workflow';
import { untilContainerSelected, untilItemSelected } from '../../helpers/utils';
import { containerResourceLocator, itemResourceLocator } from '../common';
const properties: INodeProperties[] = [
{ ...containerResourceLocator, description: 'Select the container you want to use' },
{ ...itemResourceLocator, description: 'Select the item to be deleted' },
{
displayName: 'Additional Fields',
name: 'additionalFields',
default: {},
displayOptions: {
hide: {
...untilContainerSelected,
...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: ['delete'],
},
};
export const description = updateDisplayOptions(displayOptions, properties);