mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
* 👕 Enable `consistent-type-imports` for nodes-base * 👕 Apply to nodes-base * ⏪ Undo unrelated changes * 🚚 Move to `.eslintrc.js` in nodes-base * ⏪ Revert "Enable `consistent-type-imports` for nodes-base" This reverts commit 529ad72b051478fa1633aaf84b2864f2fdc7613c. * 👕 Fix severity
68 lines
1.5 KiB
TypeScript
68 lines
1.5 KiB
TypeScript
import type { INodeProperties } from 'n8n-workflow';
|
|
|
|
export const policyOperations: INodeProperties[] = [
|
|
{
|
|
displayName: 'Operation',
|
|
name: 'operation',
|
|
type: 'options',
|
|
noDataExpression: true,
|
|
displayOptions: {
|
|
show: {
|
|
resource: ['policy'],
|
|
},
|
|
},
|
|
options: [
|
|
{
|
|
name: 'Get',
|
|
value: 'get',
|
|
description: 'Get a policy',
|
|
action: 'Get a policy',
|
|
},
|
|
],
|
|
default: 'get',
|
|
},
|
|
];
|
|
|
|
export const policyFields: INodeProperties[] = [
|
|
/* -------------------------------------------------------------------------- */
|
|
/* policy:get */
|
|
/* -------------------------------------------------------------------------- */
|
|
{
|
|
displayName: 'Policy DN',
|
|
name: 'policyDn',
|
|
type: 'string',
|
|
required: true,
|
|
displayOptions: {
|
|
show: {
|
|
operation: ['get'],
|
|
resource: ['policy'],
|
|
},
|
|
},
|
|
default: '',
|
|
description: 'The Distinguished Name (DN) of the policy folder',
|
|
},
|
|
{
|
|
displayName: 'Additional Fields',
|
|
name: 'additionalFields',
|
|
type: 'collection',
|
|
placeholder: 'Add Field',
|
|
default: {},
|
|
displayOptions: {
|
|
show: {
|
|
operation: ['get'],
|
|
resource: ['policy'],
|
|
},
|
|
},
|
|
options: [
|
|
{
|
|
displayName: 'PKCS10',
|
|
name: 'PKCS10',
|
|
type: 'string',
|
|
default: '',
|
|
description:
|
|
'The PKCS#10 policy Signing Request (CSR). Omit escape characters such as or . If this value is provided, any Subject DN fields and the KeyBitSize in the request are ignored.',
|
|
},
|
|
],
|
|
},
|
|
];
|