Skip to content

Commit

Permalink
fix(recommend): RecommendedForYouQuery userToken should be required (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
raed667 committed Dec 12, 2023
1 parent ccead52 commit d20b253
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion packages/recommend/src/types/RecommendedForYouQuery.ts
@@ -1,3 +1,19 @@
import { RecommendationsQuery } from './RecommendationsQuery';
import { RecommendSearchOptions } from './RecommendSearchOptions';

export type RecommendedForYouQuery = Omit<RecommendationsQuery, 'model' | 'objectID'>;
export type RecommendedForYouQuery = Omit<
RecommendationsQuery,
'model' | 'objectID' | 'queryParameters'
> & {
/**
* List of [search parameters](https://www.algolia.com/doc/api-reference/search-api-parameters/) to send.
*/
readonly queryParameters: Omit<RecommendSearchOptions, 'userToken'> & {
/**
* A user identifier.
* Format: alpha numeric string [a-zA-Z0-9_-]
* Length: between 1 and 64 characters.
*/
readonly userToken: string;
};
};

0 comments on commit d20b253

Please sign in to comment.