mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
44 lines
993 B
TypeScript
44 lines
993 B
TypeScript
import type { INodeProperties } from 'n8n-workflow';
|
|
import { updateDisplayOptions } from 'n8n-workflow';
|
|
|
|
import { validateUserPath } from '../../helpers/utils';
|
|
import { paginationParameters } from '../common';
|
|
|
|
const properties: INodeProperties[] = [
|
|
...paginationParameters,
|
|
{
|
|
displayName: 'Additional Fields',
|
|
name: 'additionalFields',
|
|
type: 'collection',
|
|
placeholder: 'Add Field',
|
|
default: {},
|
|
options: [
|
|
{
|
|
displayName: 'Path Prefix',
|
|
name: 'pathPrefix',
|
|
type: 'string',
|
|
validateType: 'string',
|
|
default: '/',
|
|
description: 'The path prefix for filtering the results',
|
|
placeholder: 'e.g. /division_abc/subdivision_xyz/',
|
|
routing: {
|
|
send: {
|
|
preSend: [validateUserPath],
|
|
property: 'PathPrefix',
|
|
value: '={{ $value }}',
|
|
},
|
|
},
|
|
},
|
|
],
|
|
},
|
|
];
|
|
|
|
const displayOptions = {
|
|
show: {
|
|
resource: ['user'],
|
|
operation: ['getAll'],
|
|
},
|
|
};
|
|
|
|
export const description = updateDisplayOptions(displayOptions, properties);
|