Skip to content

Commit

Permalink
feat(search): add to SearchResponse collections array (#956)
Browse files Browse the repository at this point in the history
Closes #943
  • Loading branch information
Izayda authored Jun 28, 2021
1 parent ad73fce commit 4343154
Show file tree
Hide file tree
Showing 26 changed files with 17,173 additions and 17,557 deletions.
11 changes: 11 additions & 0 deletions packages/admin-ui/src/lib/core/src/common/generated-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4443,6 +4443,7 @@ export type SearchResponse = {
items: Array<SearchResult>;
totalItems: Scalars['Int'];
facetValues: Array<FacetValueResult>;
collections: Array<CollectionResult>;
};

/**
Expand All @@ -4455,6 +4456,16 @@ export type FacetValueResult = {
count: Scalars['Int'];
};

/**
* Which Collections are present in the products returned
* by the search, and in what quantity.
*/
export type CollectionResult = {
__typename?: 'CollectionResult';
collection: Collection;
count: Scalars['Int'];
};

export type SearchResultAsset = {
__typename?: 'SearchResultAsset';
id: Scalars['ID'];
Expand Down
Loading

0 comments on commit 4343154

Please sign in to comment.