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: ['attribute'],
operation: ['search'],
},
};
const searchDescription = updateDisplayOptions(searchDisplayOptions, searchProperties);
export const attributeOperations: INodeProperties[] = [
{
@@ -32,6 +43,11 @@ export const attributeOperations: INodeProperties[] = [
value: 'getAll',
action: 'Get many attributes',
},
{
name: 'Search',
value: 'search',
action: 'Get a filtered list of attributes',
},
{
name: 'Update',
value: 'update',
@@ -226,6 +242,11 @@ export const attributeFields: INodeProperties[] = [
},
},
// ----------------------------------------
// attribute: search
// ----------------------------------------
...searchDescription,
// ----------------------------------------
// attribute: update
// ----------------------------------------