From be597e9f80937fd8af43a6e34f103e2fd92fb66a Mon Sep 17 00:00:00 2001 From: Manikandan Ravikumar Date: Tue, 28 May 2024 09:36:45 +0300 Subject: [PATCH] Fixing NostoSessionProp to NostoSessionClient --- src/types.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/types.ts b/src/types.ts index 606ee5f..97c3518 100644 --- a/src/types.ts +++ b/src/types.ts @@ -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 @@ -54,7 +54,7 @@ export interface NostoSessionProps { */ export interface NostoClient { setAutoLoad(autoload: boolean): NostoClient - defaultSession(): NostoSessionProps + defaultSession(): NostoSessionClient placements: { getPlacements(): string[] injectCampaigns(recommendations: Record): void