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: ['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
|
||||
// ----------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user