-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.ts
41 lines (38 loc) · 1019 Bytes
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import { InputSearchQuery } from "./generated"
/**
* @group Nosto Client
* @category Search Types
*/
export interface InputSearchQueryWithFields extends InputSearchQuery {
products?: {
/**
* The fields to return in the response.
*/
fields?: string[]
} & InputSearchQuery["products"]
keywords?: {
/**
* The fields to return in the response.
*/
fields?: string[]
} & InputSearchQuery["keywords"]
}
/**
* @group Nosto Client
* @category Core
*/
export interface SearchOptions {
/**
* Enabled Nosto tracking. The source of search request must be provided, e.g. if request made from autocomplete, track should be set to "autocomplete".
*/
track?: "autocomplete" | "category" | "serp"
/**
* Automatically handle redirect when received from search.
*/
redirect?: boolean
/**
* Marks that search was done by clicking a keyword
*/
isKeyword?: boolean
}
export * from "./generated"