mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-16 09:34:07 -08:00
45e2830555
* ✨ Create MISP node * ⚡ Improvements * ⚡ Refactor tags type * ⚡ Refactor tag into eventTag * ⚡ Add required params to feed:create * ⚡ Change endpoint for tag:getAll * ⚡ Add description to role ID * ⚡ Small improvements * ⚡ Improvements * 🔥 Remove empty file * ⚡ Add sharing group ID param * 🔥 Remove param with no effect * 🔨 Refactor sharing group to remove duplication * 🔥 Remove param with no effect * ⚡ Validate URL in feed resource * ✏️ Rename Inviter param * ✏️ Reword dynamic list param descriptions * ⚡ Clean up error handling * 👕 Nodelinter pass * 🔥 Remove unused import * 🔨 Change param to color type * ⚡ Improvements * ⚡ Fix color Co-authored-by: ricardo <ricardoespinoza105@gmail.com> Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
95 lines
1.5 KiB
TypeScript
95 lines
1.5 KiB
TypeScript
import {
|
|
INodeProperties,
|
|
} from 'n8n-workflow';
|
|
|
|
export const noticelistOperations: INodeProperties[] = [
|
|
{
|
|
displayName: 'Operation',
|
|
name: 'operation',
|
|
type: 'options',
|
|
displayOptions: {
|
|
show: {
|
|
resource: [
|
|
'noticelist',
|
|
],
|
|
},
|
|
},
|
|
noDataExpression: true,
|
|
options: [
|
|
{
|
|
name: 'Get',
|
|
value: 'get',
|
|
},
|
|
{
|
|
name: 'Get All',
|
|
value: 'getAll',
|
|
},
|
|
],
|
|
default: 'get',
|
|
},
|
|
];
|
|
|
|
export const noticelistFields: INodeProperties[] = [
|
|
// ----------------------------------------
|
|
// noticelist: get
|
|
// ----------------------------------------
|
|
{
|
|
displayName: 'Noticelist ID',
|
|
name: 'noticelistId',
|
|
description: 'Numeric ID of the noticelist',
|
|
type: 'string',
|
|
required: true,
|
|
default: '',
|
|
displayOptions: {
|
|
show: {
|
|
resource: [
|
|
'noticelist',
|
|
],
|
|
operation: [
|
|
'get',
|
|
],
|
|
},
|
|
},
|
|
},
|
|
{
|
|
displayName: 'Return All',
|
|
name: 'returnAll',
|
|
type: 'boolean',
|
|
default: false,
|
|
description: 'Whether to return all results or only up to a given limit',
|
|
displayOptions: {
|
|
show: {
|
|
resource: [
|
|
'noticelist',
|
|
],
|
|
operation: [
|
|
'getAll',
|
|
],
|
|
},
|
|
},
|
|
},
|
|
{
|
|
displayName: 'Limit',
|
|
name: 'limit',
|
|
type: 'number',
|
|
default: 50,
|
|
description: 'Max number of results to return',
|
|
typeOptions: {
|
|
minValue: 1,
|
|
},
|
|
displayOptions: {
|
|
show: {
|
|
resource: [
|
|
'noticelist',
|
|
],
|
|
operation: [
|
|
'getAll',
|
|
],
|
|
returnAll: [
|
|
false,
|
|
],
|
|
},
|
|
},
|
|
},
|
|
];
|