SearchQuery
Allow user to filter the dispatches based on configured query with user interaction.
Attributes
queries
: [Array of Objects]name
: Provide a text to be display for user selectid
: Provide a uniquer id for list of selectionquery
: Configured a query. For filter the dispatch. Can be used following terms. $filter for user specified text. $date for current date.$from for specified a date range with below option.
dates
: [Array of Objects]display
: Display value for user interactionvalue
: date range value should following. "stream" | "today" | "this-month" | "custom-range"
Example
{
"queries": [
{
"name": "Search by Body",
"id": "search-by-body",
"query": "all users where body is '$filter'"
},
{
"name": "Search By Body and date",
"id": "search-by-body-and-date",
"query": "all users from $date where body is '$filter'"
},
{
"name": "Search By Body and from",
"id": "search-by-body-and-from",
"query": "all users $from where body is '$filter'"
}
],
"dates": [
{
"display": "All",
"value": "stream"
},
{
"display": "Today",
"value": "today"
},
{
"display": "This month",
"value": "this-month"
},
{
"display": "Custom range",
"value": "custom-range"
}
]
}