feat(MISP Node): Rest search operations (#9196)

This commit is contained in:
Michael Kret
2024-04-26 11:12:22 +03:00
committed by GitHub
parent 9b3ac1648f
commit b694e7743e
7 changed files with 270 additions and 1 deletions

View File

@@ -1,4 +1,15 @@
import type { INodeProperties } from 'n8n-workflow';
import { updateDisplayOptions } from '../../../utils/utilities';
import { searchProperties } from './common.descriptions';
const searchDisplayOptions = {
show: {
resource: ['event'],
operation: ['search'],
},
};
const searchDescription = updateDisplayOptions(searchDisplayOptions, searchProperties);
export const eventOperations: INodeProperties[] = [
{
@@ -37,6 +48,11 @@ export const eventOperations: INodeProperties[] = [
value: 'publish',
action: 'Publish an event',
},
{
name: 'Search',
value: 'search',
action: 'Get a filtered list of events',
},
{
name: 'Unpublish',
value: 'unpublish',
@@ -295,6 +311,11 @@ export const eventFields: INodeProperties[] = [
},
},
// ----------------------------------------
// event: search
// ----------------------------------------
...searchDescription,
// ----------------------------------------
// event: update
// ----------------------------------------