@devcycle/js-cloud-server-sdk
Version:
The DevCycle JS Cloud Bucketing Server SDK used for feature management.
33 lines (32 loc) • 1.07 kB
TypeScript
import { DVCCustomDataJSON } from '../types';
import { DevCycleUser } from './user';
import { SDKTypes } from '@devcycle/types';
export type DevCyclePlatformDetails = {
platform?: string;
platformVersion?: string;
sdkType?: SDKTypes;
sdkVersion?: string;
sdkPlatform?: string;
hostname?: string;
};
export declare class DVCPopulatedUser implements DevCycleUser {
user_id: string;
email?: string;
name?: string;
language?: string;
country?: string;
appVersion?: string;
appBuild?: number;
customData?: DVCCustomDataJSON;
privateCustomData?: DVCCustomDataJSON;
readonly lastSeenDate: Date;
readonly createdDate: Date;
readonly platform: string;
readonly platformVersion: string;
readonly sdkType: SDKTypes;
readonly sdkVersion: string;
readonly sdkPlatform?: string;
readonly hostname?: string;
constructor(user: DevCycleUser, platformDetails: DevCyclePlatformDetails);
static fromDVCUser(user: DevCycleUser, platformDetails: DevCyclePlatformDetails): DVCPopulatedUser;
}