Skip to content

Commit

Permalink
nojira: docs on search result context (#100)
Browse files Browse the repository at this point in the history
Co-authored-by: ani hammond <ani hammond>
  • Loading branch information
aniham authored Jul 14, 2023
1 parent aa03431 commit 0a50902
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -12,6 +12,8 @@

[Search Results schema](../../../packages/storefront-events-sdk/src/types/schemas/searchResults.ts)

*Note* It is important that `searchUnitId` matches `searchUnitId` in request for the context to be processed by Commerce correctly.

### Mock data

```javascript
1 change: 0 additions & 1 deletion examples/events/readme.md
Original file line number Diff line number Diff line change
@@ -52,7 +52,6 @@ Setting `Page` and `Storefront` contexts should happen at the page level/storefr

The contexts are included in all event generation examples as a reminder that they are required for events to be processed correctly.


### Debugging

#### Adobe Data Layer
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ export type SearchResults = {
};

export type SearchResultUnit = {
searchUnitId: string;
searchUnitId: string; // must match searchUnitId in request
searchRequestId: string;
rankingType?: string;
trendingWindow?: string;

0 comments on commit 0a50902

Please # to comment.