Files
n8n-enterprise-unlocked/packages/nodes-base/nodes/Microsoft/AzureCosmosDb/descriptions/item/delete.operation.ts
AdinaTotorean b52f9f0f6c feat(Azure Cosmos DB Node): New node (#14156)
Co-authored-by: feelgood-interface <feelgood.interface@gmail.com>
2025-04-09 15:05:33 +01:00

41 lines
1.0 KiB
TypeScript

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);