UNPKG

@devcycle/js-cloud-server-sdk

Version:

The DevCycle JS Cloud Bucketing Server SDK used for feature management.

58 lines (57 loc) 1.68 kB
import { DVCCustomDataJSON } from '@devcycle/types'; type DevCycleUserData = { user_id: string; email?: string; name?: string; language?: string; country?: string; appVersion?: string; appBuild?: number; customData?: DVCCustomDataJSON; privateCustomData?: DVCCustomDataJSON; }; export declare class DevCycleUser { /** * Identifies the current user. Must be defined */ user_id: string; /** * Email used for identifying a device user in the dashboard, * or used for audience segmentation. */ email?: string; /** * Name of the user which can be used for identifying a device user, * or used for audience segmentation. */ name?: string; /** * ISO 639-1 two-letter codes, or ISO 639-2 three-letter codes */ language?: string; /** * ISO 3166 two or three-letter codes */ country?: string; /** * Application Version, can be used for audience segmentation. */ appVersion?: string; /** * Application Build, can be used for audience segmentation. */ appBuild?: number; /** * Custom JSON data used for audience segmentation, must be limited to __kb in size. * Values will be logged to DevCycle's servers and available in the dashboard to view. */ customData?: DVCCustomDataJSON; /** * Private Custom JSON data used for audience segmentation, must be limited to __kb in size. * Values will not be logged to DevCycle's servers and * will not be available in the dashboard. */ privateCustomData?: DVCCustomDataJSON; constructor(data: DevCycleUserData); } export {};