Thankly SDK for JavaScript
    Preparing search index...

    Module @thankly/sdk-lib

    @thankly/sdk-lib

    Shared types and storage helpers for the Thankly SDK. Every other Thankly package depends on this one; you rarely install it directly.

    npm install @thankly/sdk-lib
    
    import { createStorageAdapter } from '@thankly/sdk-lib';

    // 'local' | 'chrome' | 'browser' — pick the one your runtime actually has.
    const storage = createStorageAdapter('local');

    It also exports the wire types shared across the SDK (Context, History, Cart, CatalogProduct, CapabilityWidget, …), so a consumer can type its own helpers against the same shapes the API returns.

    Full API reference: https://docs.thankly.ai/js

    Apache-2.0

    BrowserStorageAdapter
    ChromeStorageAdapter
    LocalStorageAdapter
    BaseCapabilityConfig
    BrandConfig
    BrandConfigVersion
    CapabilityRequestBase
    CapabilityWidget
    CapabilityWidgetResponse
    Cart
    CartProduct
    Catalog
    CatalogProduct
    CatalogRecommendationsConfig
    CatalogRecommendationsData
    Context
    CreateExperienceBody
    CreateExperienceResponse
    Cruise
    CustomerProfile
    DecisionEnvelope
    DecisionVariant
    EngagementCallback
    EngagementDecisionResponse
    EngagementDecisionWidgetsResponse
    EngagementOverrides
    EngagementWidget
    ExactDecimal
    Flight
    GetExperienceWidgetResponse
    History
    NativeOffer
    OrderHistoryItem
    OutcomeReport
    OutcomeResult
    PaginationInfo
    Playbook
    PlaybookBody
    PlaybookEngagementBlock
    PresignedUrlResponse
    ProductListResponse
    ProductQueryParams
    ProductRef
    PurchaseContext
    RefinementRequest
    ResearchCapabilityConfig
    Signal
    SignalBatch
    SignalIngestError
    SignalIngestResult
    StorageAdapter
    ThanklyApi
    ThanklyLibConfig
    Topic
    TripLocation
    VirtualTryOnCapabilityConfig
    VirtualTryOnVideoConfig
    WardrobeRecommendationsConfig
    WardrobeRecommendationsData
    WeeklyMealPlanConfig
    AudienceComparator
    CapabilityConfig
    CapabilityRequest
    CapabilityType
    CapabilityWidgetStatus
    PlaybookSurface
    PreFilter
    SeatClass
    StorageAdapterType
    Trip
    UploadPurpose
    compareDecimals
    createStorageAdapter
    formatNativeMoney
    getWithExpiry
    normalizeLocale
    parseNativeDecimal
    scaledCoefficient
    setWithExpiry