mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
feat(MISP Node): Rest search operations (#9196)
This commit is contained in:
@@ -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
|
||||
// ----------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user