2021-01-13 01:45:41 -08:00
import {
INodeProperties ,
} from 'n8n-workflow' ;
2021-12-03 00:44:16 -08:00
export const searchOperations : INodeProperties [ ] = [
2021-01-13 01:45:41 -08:00
{
displayName : 'Operation' ,
name : 'operation' ,
type : 'options' ,
displayOptions : {
show : {
resource : [
'search' ,
] ,
} ,
} ,
options : [
{
name : 'Query' ,
value : 'query' ,
description : 'Execute a SOQL query that returns all the results in a single response' ,
} ,
] ,
default : 'query' ,
description : 'The operation to perform.' ,
} ,
2021-12-03 00:44:16 -08:00
] ;
2021-01-13 01:45:41 -08:00
2021-12-03 00:44:16 -08:00
export const searchFields : INodeProperties [ ] = [
2021-01-13 01:45:41 -08:00
/* -------------------------------------------------------------------------- */
/* search:query */
/* -------------------------------------------------------------------------- */
{
displayName : 'Query' ,
name : 'query' ,
type : 'string' ,
required : true ,
default : '' ,
displayOptions : {
show : {
resource : [
'search' ,
] ,
operation : [
'query' ,
] ,
} ,
} ,
description : 'A SOQL query. An example query parameter string might look like: “SELECT+Name+FROM+MyObject”. If the SOQL query string is invalid, a MALFORMED_QUERY response is returned.' ,
} ,
2021-12-03 00:44:16 -08:00
] ;