Skip to content

Commit

Permalink
Fixing NostoSessionProp to NostoSessionClient
Browse files Browse the repository at this point in the history
  • Loading branch information
manikandan-ravikumar committed May 28, 2024
1 parent 822e995 commit be597e9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ export interface SessionAction {
/**
* @group Types
*/
export interface NostoSessionProps {
setCart(cart?: Cart): NostoSessionProps
setCustomer(customer?: Customer): NostoSessionProps
setResponseMode(mode: string): NostoSessionProps
setVariation(variation?: string): NostoSessionProps
export interface NostoSessionClient {
setCart(cart?: Cart): NostoSessionClient
setCustomer(customer?: Customer): NostoSessionClient
setResponseMode(mode: string): NostoSessionClient
setVariation(variation?: string): NostoSessionClient
addOrder(order: { purchase: Purchase }): SessionAction
viewCategory(category: string): SessionAction
viewProduct(product: string): SessionAction
Expand All @@ -54,7 +54,7 @@ export interface NostoSessionProps {
*/
export interface NostoClient {
setAutoLoad(autoload: boolean): NostoClient
defaultSession(): NostoSessionProps
defaultSession(): NostoSessionClient
placements: {
getPlacements(): string[]
injectCampaigns(recommendations: Record<string, Recommendation>): void
Expand Down

0 comments on commit be597e9

Please sign in to comment.