Skip to content

Commit d20b253

Browse files
authoredDec 12, 2023
fix(recommend): RecommendedForYouQuery userToken should be required (#1496)
1 parent ccead52 commit d20b253

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
11
import { RecommendationsQuery } from './RecommendationsQuery';
2+
import { RecommendSearchOptions } from './RecommendSearchOptions';
23

3-
export type RecommendedForYouQuery = Omit<RecommendationsQuery, 'model' | 'objectID'>;
4+
export type RecommendedForYouQuery = Omit<
5+
RecommendationsQuery,
6+
'model' | 'objectID' | 'queryParameters'
7+
> & {
8+
/**
9+
* List of [search parameters](https://www.algolia.com/doc/api-reference/search-api-parameters/) to send.
10+
*/
11+
readonly queryParameters: Omit<RecommendSearchOptions, 'userToken'> & {
12+
/**
13+
* A user identifier.
14+
* Format: alpha numeric string [a-zA-Z0-9_-]
15+
* Length: between 1 and 64 characters.
16+
*/
17+
readonly userToken: string;
18+
};
19+
};

0 commit comments

Comments
 (0)
Please sign in to comment.