n8n-nodes-base
Version:
Base nodes of n8n
68 lines (64 loc) • 1.73 kB
text/typescript
/**
* Splunk Node - Version 1
* Discriminator: resource=searchResult, operation=getAll
*/
interface Credentials {
splunkApi: CredentialReference;
}
/** Retrieve many search configurations */
export type SplunkV1SearchResultGetAllParams = {
resource: 'searchResult';
operation: 'getAll';
/**
* ID of the search whose results to retrieve
*/
searchJobId?: string | Expression<string> | PlaceholderValue;
/**
* Whether to return all results or only up to a given limit
* @default false
*/
returnAll?: boolean | Expression<boolean>;
/**
* Max number of results to return
* @displayOptions.show { returnAll: [false] }
* @default 50
*/
limit?: number | Expression<number>;
/**
* Filters
* @default {}
*/
filters?: {
/** Key-value pair to match against. Example: if "Key" is set to <code>user</code> and "Field" is set to <code>john</code>, only the results where <code>user</code> is <code>john</code> will be returned.
* @default {}
*/
keyValueMatch?: {
/** Key-Value Pair
*/
keyValuePair?: {
/** Key to match against
*/
key?: string | Expression<string> | PlaceholderValue;
/** Value to match against
*/
value?: string | Expression<string> | PlaceholderValue;
};
};
};
/**
* Options
* @default {}
*/
options?: {
/** Whether to include field summary statistics in the response
* @default false
*/
add_summary_to_metadata?: boolean | Expression<boolean>;
};
};
export type SplunkV1SearchResultGetAllNode = {
type: 'n8n-nodes-base.splunk';
version: 1;
credentials?: Credentials;
config: NodeConfig<SplunkV1SearchResultGetAllParams>;
};