![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
@attraqt/search
Advanced tools
Readme
Use @attraqt/search
to search through items using the XO platform.
npm install --save @attraqt/search
import { search } from '@attraqt/search';
search.init({
token: 'SEARCH_API_TOKEN'
});
const searchResponse = await search.query('T-Shirt', {
offset: 10,
limit: 30,
filter: 'price < 50'
});
console.log(searchResponse.items);
console.log(searchResponse.metadata);
const suggestResponse = await xo.search.suggest('T-Shirt', {
filter: 'price < 50',
groupBy: {
attribute: 'kind',
count: 10,
values: ['product', 'shops', 'ads']
}
});
console.log(suggestResponse.items);
console.log(suggestResponse.metadata);
Method | Argument(s) | Result | Description |
---|---|---|---|
init | options: SearchInitOptions | void | Initializes the search client |
query | query: string , options?: SearchOptions , requestOptions?: SearchRequestOptions | Promise<SearchResponse> | Searches for items |
suggest | query: string , options?: ProductSuggestOptions , requestOptions?: SearchRequestOptions | Promise<ProductSuggestResponse> | Suggest and group a selection of items |
All options are optional.
Option | Type | Description |
---|---|---|
limit | number | Pagination: Size of a page |
offset | number | Pagination: Index of the first item to fetch |
filter | string | Filter query string |
sortBy | SortOptions[] | Sort options, evaluated in order of appearance |
facets | FacetRequestOptions[] | Facets filters to apply to the query |
customResponseMask | string | Custom response mask. Allows to fetch only specific field from the catalog |
disable | DisableOptions[] | Features to disable for this query |
All options are optional.
Option | Type | Description |
---|---|---|
filter | string | Filter query string |
sortBy | SortOptions[] | Sort options, evaluated in order of appearance |
customResponseMask | string | Custom response mask. Allows to fetch only specific field from the catalog |
groupBy | GroupOptions | Group result by an attribute and its specified values |
FAQs
Use `@attraqt/search` to search through items using the XO platform.
The npm package @attraqt/search receives a total of 655 weekly downloads. As such, @attraqt/search popularity was classified as not popular.
We found that @attraqt/search demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.