2022-08-17 08:50:24 -07:00
import { INodeProperties } from 'n8n-workflow' ;
2021-01-13 01:45:41 -08:00
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' ,
2022-05-20 14:47:24 -07:00
noDataExpression : true ,
2021-01-13 01:45:41 -08:00
displayOptions : {
show : {
2022-08-17 08:50:24 -07:00
resource : [ 'search' ] ,
2021-01-13 01:45:41 -08:00
} ,
} ,
options : [
{
name : 'Query' ,
value : 'query' ,
description : 'Execute a SOQL query that returns all the results in a single response' ,
2022-07-10 13:50:51 -07:00
action : 'Perform a query' ,
2021-01-13 01:45:41 -08:00
} ,
] ,
default : 'query' ,
} ,
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 : {
2022-08-17 08:50:24 -07:00
resource : [ 'search' ] ,
operation : [ 'query' ] ,
2021-01-13 01:45:41 -08:00
} ,
} ,
2022-08-17 08:50:24 -07:00
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-01-13 01:45:41 -08:00
} ,
2021-12-03 00:44:16 -08:00
] ;