UNPKG

@devcycle/js-client-sdk

Version:

The Javascript Client SDK for DevCycle

29 lines (28 loc) 1.27 kB
import { DevCycleOptions, DevCycleUser, DVCCustomDataJSON } from './types'; import { CacheStore } from './CacheStore'; type StaticData = Pick<DVCPopulatedUser, 'createdDate' | 'platform' | 'platformVersion' | 'deviceModel' | 'sdkType' | 'sdkVersion' | 'sdkPlatform'>; export declare class DVCPopulatedUser implements DevCycleUser { readonly isAnonymous: boolean; readonly user_id: string; readonly email?: string; readonly name?: string; readonly language?: string; readonly country?: string; readonly appVersion?: string; readonly appBuild?: number; readonly customData?: DVCCustomDataJSON; readonly privateCustomData?: DVCCustomDataJSON; readonly lastSeenDate: Date; readonly createdDate: Date; readonly platform: string; readonly platformVersion: string; readonly deviceModel: string; readonly sdkType: 'client'; readonly sdkVersion: string; readonly sdkPlatform?: string; private generateAndSaveAnonUserId; constructor(user: DevCycleUser, options: DevCycleOptions, staticData?: StaticData, anonymousUserId?: string, headerUserAgent?: string, store?: CacheStore); getStaticData(): StaticData; updateUser(user: DevCycleUser, options: DevCycleOptions): DVCPopulatedUser; } export {};