Files
n8n-enterprise-unlocked/packages/nodes-base/nodes/Microsoft/SharePoint/descriptions/item/delete.operation.ts
2025-05-16 08:55:10 +01:00

45 lines
798 B
TypeScript

import { updateDisplayOptions, type INodeProperties } from 'n8n-workflow';
import {
itemRLC,
listRLC,
siteRLC,
untilListSelected,
untilSiteSelected,
} from '../common.descriptions';
const properties: INodeProperties[] = [
{
...siteRLC,
description: 'Select the site to retrieve lists from',
},
{
...listRLC,
description: 'Select the list you want to delete an item in',
displayOptions: {
hide: {
...untilSiteSelected,
},
},
},
{
...itemRLC,
description: 'Select the item you want to delete',
displayOptions: {
hide: {
...untilSiteSelected,
...untilListSelected,
},
},
},
];
const displayOptions = {
show: {
resource: ['item'],
operation: ['delete'],
},
};
export const description = updateDisplayOptions(displayOptions, properties);