mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 03:12:15 +00:00
feat(MISP Node): Rest search operations (#9196)
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
import type { INodeProperties } from 'n8n-workflow';
|
||||
import { updateDisplayOptions } from '../../../utils/utilities';
|
||||
import { searchProperties } from './common.descriptions';
|
||||
|
||||
const searchDisplayOptions = {
|
||||
show: {
|
||||
resource: ['object'],
|
||||
operation: ['search'],
|
||||
},
|
||||
};
|
||||
|
||||
const searchDescription = updateDisplayOptions(searchDisplayOptions, searchProperties);
|
||||
|
||||
export const objectOperations: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
type: 'options',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: ['object'],
|
||||
},
|
||||
},
|
||||
noDataExpression: true,
|
||||
options: [
|
||||
{
|
||||
name: 'Search',
|
||||
value: 'search',
|
||||
action: 'Get a filtered list of objects',
|
||||
},
|
||||
],
|
||||
default: 'search',
|
||||
},
|
||||
];
|
||||
|
||||
export const objectFields: INodeProperties[] = [
|
||||
// ----------------------------------------
|
||||
// event: search
|
||||
// ----------------------------------------
|
||||
...searchDescription,
|
||||
];
|
||||
Reference in New Issue
Block a user